From b94f6d148193f91cab50d16e2873095827b89b1b Mon Sep 17 00:00:00 2001 From: amelia squires Date: Wed, 15 Oct 2025 16:50:46 -0500 Subject: better errors and docs --- src/reg.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/reg.c') 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; } -- cgit v1.2.3