60#define SPECLIST_TAG signal_callback
61#define SPECLIST_TYPE struct signal_callback
64#define signal_callback_list_iterate(list, pcallback) \
65 TYPED_LIST_ITERATE(struct signal_callback, list, pcallback)
66#define signal_callback_list_iterate_end \
90#define SPECHASH_TAG luascript_signal
91#define SPECHASH_ASTR_KEY_TYPE
92#define SPECHASH_IDATA_TYPE struct signal *
93#define SPECHASH_IDATA_FREE signal_destroy
96#define signal_hash_iterate(phash, key, data) \
97 TYPED_HASH_ITERATE(char *, struct signal *, phash, key, data)
98#define signal_hash_iterate_end \
102#define SPECLIST_TAG luascript_signal_name
103#define SPECLIST_TYPE char
106#define luascript_signal_name_list_iterate(list, pname) \
107 TYPED_LIST_ITERATE(struct signal_callback, list, pcallback)
108#define luascript_signal_name_list_iterate_end \
156 if (
psignal->deprecator.depr_msg) {
159 if (
psignal->deprecator.retired) {
287 "%s lua signal \"%s\", retired since \"%s\", "
288 "and deprecated already since \"%s\", used. "
289 "Use \"%s\" instead",
293 "%s lua signal \"%s\", deprecated since \"%s\", used. "
294 "Use \"%s\" instead",
299 "%s lua signal \"%s\" used. Use \"%s\" instead",
#define log_deprecation(message,...)
#define fc_assert_ret(condition)
#define fc_assert_ret_val(condition, val)
bool luascript_callback_invoke(struct fc_lua *fcl, const char *callback_name, int nargs, enum api_types *parg_types, va_list args)
int luascript_error(lua_State *L, const char *format,...)
void luascript_log(struct fc_lua *fcl, enum log_level level, const char *format,...)
void luascript_signal_free(struct fc_lua *fcl)
void luascript_signal_init(struct fc_lua *fcl)
static void signal_destroy(struct signal *psignal)
bool luascript_signal_callback_defined(struct fc_lua *fcl, const char *signal_name, const char *callback_name)
void deprecate_signal(struct signal_deprecator *deprecator, char *signal_name, char *replacement, char *deprecated_since, char *retired_since)
struct signal_deprecator * luascript_signal_create(struct fc_lua *fcl, const char *signal_name, int nargs,...)
void luascript_signal_emit_valist(struct fc_lua *fcl, const char *signal_name, va_list args)
static struct signal * luascript_signal_create_valist(struct fc_lua *fcl, const char *signal_name, int nargs, va_list args)
const char * luascript_signal_by_index(struct fc_lua *fcl, int sindex)
#define signal_callback_list_iterate(list, pcallback)
static struct signal_callback * signal_callback_new(const char *name)
static void signal_callback_destroy(struct signal_callback *pcallback)
const char * luascript_signal_callback_by_index(struct fc_lua *fcl, const char *signal_name, int sindex)
void luascript_signal_emit(struct fc_lua *fcl, const char *signal_name,...)
#define signal_callback_list_iterate_end
void luascript_signal_callback(struct fc_lua *fcl, const char *signal_name, const char *callback_name, bool create)
static void sn_free(char *name)
static struct signal * signal_new(int nargs, enum api_types *parg_types)
#define fc_calloc(n, esz)
struct signal_callback_list * callbacks
enum api_types * arg_types
struct signal_deprecator deprecator
int fc_snprintf(char *str, size_t n, const char *format,...)