diff options
Diffstat (limited to '')
| -rw-r--r-- | src/yue_wasm.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/yue_wasm.cpp b/src/yue_wasm.cpp index fd8b150..3a9f9ad 100644 --- a/src/yue_wasm.cpp +++ b/src/yue_wasm.cpp | |||
| @@ -11,6 +11,8 @@ static void openlibs(void* state) { | |||
| 11 | lua_State* L = static_cast<lua_State*>(state); | 11 | lua_State* L = static_cast<lua_State*>(state); |
| 12 | luaL_openlibs(L); | 12 | luaL_openlibs(L); |
| 13 | luaopen_yue(L); | 13 | luaopen_yue(L); |
| 14 | luaL_requiref(L, "yue", luaopen_yue, 1); | ||
| 15 | lua_pop(L, 1); | ||
| 14 | } | 16 | } |
| 15 | 17 | ||
| 16 | #define YUE_ARGS nullptr,openlibs | 18 | #define YUE_ARGS nullptr,openlibs |
