diff options
| author | amelia squires <[email protected]> | 2025-10-15 16:50:46 -0500 |
|---|---|---|
| committer | amelia squires <[email protected]> | 2025-10-15 16:50:46 -0500 |
| commit | b94f6d148193f91cab50d16e2873095827b89b1b (patch) | |
| tree | f550bd912cdd4c5469cec1ac320cb9c874df3476 /src/reg.c | |
| parent | 8c2893be56c10af0a696282386b49fdb3c1e4a81 (diff) | |
better errors and docs
Diffstat (limited to 'src/reg.c')
| -rw-r--r-- | src/reg.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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;
}
|
