aboutsummaryrefslogtreecommitdiff
path: root/src/reg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/reg.c')
-rw-r--r--src/reg.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/reg.c b/src/reg.c
index 440a6f0..58acc40 100644
--- a/src/reg.c
+++ b/src/reg.c
@@ -7,6 +7,7 @@
#include "thread.h"
#include "test.h"
#include "config.h"
+#include "lullaby.h"
#define open_common(name, config)\
int luaopen_lullaby_##name (lua_State* L){\
@@ -49,6 +50,9 @@ int luaopen_lullaby(lua_State* L) {
push(top, test);
luaI_tsets(L, top, "version", GIT_COMMIT);
+ lua_pushvalue(L, top);
+ int idx = i_config_metatable(L, lullaby_config);
+
lua_settop(L, top);
return 1;
}