25#define dt_lua_register_module_member(L, storage, struct_type, member, member_type) \
26 luaA_struct_member_type(L, storage->parameter_lua_type, #member, luaA_type(L, member_type), \
27 offsetof(struct_type, member))
29#define dt_lua_register_module_member_indirect(L, storage, struct_type, struct_member, child_type,child_member, member_type) \
30 luaA_struct_member_type(L, storage->parameter_lua_type, #child_member, luaA_type(L, member_type), \
31 offsetof(struct_type, struct_member)+offsetof( child_type, child_member))
50#define dt_lua_register_module_presets(L, module, entry, type) \
51 dt_lua_register_module_presets_type(L, module, entry, luaA_type_id(type))
int luaA_Type
Definition lua.h:92
int(* lua_CFunction)(lua_State *L)
Definition lua.h:91
int lua_State
Definition lua.h:90
luaA_Type dt_lua_module_entry_get_type(lua_State *L, const char *module_type_name, const char *entry_name)
get the type of an entry
Definition modules.c:77
void dt_lua_module_push(lua_State *L, const char *module_type_name)
Definition modules.c:38
void dt_lua_register_current_preset(lua_State *L, const char *module_type_name, const char *entry_name, lua_CFunction pusher, lua_CFunction getter)
Definition modules.c:107
void dt_lua_register_module_presets_type(lua_State *L, const char *module_type_name, const char *entry_name, luaA_Type preset_type)
Definition modules.c:87
void dt_lua_module_entry_push(lua_State *L, const char *module_type_name, const char *entry_name)
get the singleton reprensenting an entry
Definition modules.c:69
void dt_lua_module_new(lua_State *L, const char *module_type_name)
Definition modules.c:25
luaA_Type dt_lua_module_get_preset_type(lua_State *L, const char *module_type_name, const char *entry_name)
Definition modules.c:98
void dt_lua_module_entry_new(lua_State *L, int index, const char *module_type_name, const char *entry_name)
create a new entry into the module, the object to be the entry is taken from the index)
Definition modules.c:56
void dt_lua_module_entry_new_singleton(lua_State *L, const char *module_type_name, const char *entry_name, void *entry)
create a new entry into the module, a singleton is created for you that contains entry
Definition modules.c:46
int dt_lua_init_early_modules(lua_State *L)
Definition modules.c:125