diff options
author | Li Jin <dragon-fly@qq.com> | 2021-09-26 16:59:01 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2021-09-26 16:59:01 +0800 |
commit | b48aa97dd1127ae432ef8d7a4588cee2e1bec12c (patch) | |
tree | 68fb7a0ea6f415e611d508e36d83826b5182d51f /src/yue_wasm.cpp | |
parent | 3b62fc040ef8c5138eefd7c0f1a5880e9271c3b6 (diff) | |
download | yuescript-b48aa97dd1127ae432ef8d7a4588cee2e1bec12c.tar.gz yuescript-b48aa97dd1127ae432ef8d7a4588cee2e1bec12c.tar.bz2 yuescript-b48aa97dd1127ae432ef8d7a4588cee2e1bec12c.zip |
fix wasm issue.
Diffstat (limited to 'src/yue_wasm.cpp')
-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 |