29#define dt_lua_register_module_member(L, storage, struct_type, member, member_type) \
30 luaA_struct_member_type(L, storage->parameter_lua_type, #member, luaA_type(L, member_type), \
31 offsetof(struct_type, member))
33#define dt_lua_register_module_member_indirect(L, storage, struct_type, struct_member, child_type,child_member, member_type) \
34 luaA_struct_member_type(L, storage->parameter_lua_type, #child_member, luaA_type(L, member_type), \
35 offsetof(struct_type, struct_member)+offsetof( child_type, child_member))
54#define dt_lua_register_module_presets(L, module, entry, type) \
55 dt_lua_register_module_presets_type(L, module, entry, luaA_type_id(type))
const float L
Definition colorspaces_inline_conversions.h:724
int luaA_Type
Definition lua.h:97
int(* lua_CFunction)(lua_State *L)
Definition lua.h:96
int lua_State
Definition lua.h:95
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:82
void dt_lua_module_push(lua_State *L, const char *module_type_name)
Definition modules.c:43
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:112
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:92
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:74
void dt_lua_module_new(lua_State *L, const char *module_type_name)
Definition modules.c:30
luaA_Type dt_lua_module_get_preset_type(lua_State *L, const char *module_type_name, const char *entry_name)
Definition modules.c:103
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:61
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:51
int dt_lua_init_early_modules(lua_State *L)
Definition modules.c:130