aboutsummaryrefslogtreecommitdiff
path: root/src/reg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/reg.c')
-rw-r--r--src/reg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reg.c b/src/reg.c
index 64a2c2f..98419bc 100644
--- a/src/reg.c
+++ b/src/reg.c
@@ -26,7 +26,7 @@ static int lua_exit(lua_State* L){
#define open_common(name)\
int luaopen_lullaby_##name (lua_State* L){\
- luaL_register(L, NULL, name##_function_list);\
+ luaL_register(L, #name, name##_function_list);\
int tidx = lua_gettop(L);\
i_config_metatable(L, name##_config);\
lua_settop(L, tidx);\