aboutsummaryrefslogtreecommitdiff
path: root/src/reg.c
diff options
context:
space:
mode:
authoramelia squires <[email protected]>2025-10-15 16:50:46 -0500
committeramelia squires <[email protected]>2025-10-15 16:50:46 -0500
commitb94f6d148193f91cab50d16e2873095827b89b1b (patch)
treef550bd912cdd4c5469cec1ac320cb9c874df3476 /src/reg.c
parent8c2893be56c10af0a696282386b49fdb3c1e4a81 (diff)
better errors and docs
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;
}