aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2021-09-26 16:59:01 +0800
committerLi Jin <dragon-fly@qq.com>2021-09-26 16:59:01 +0800
commitb48aa97dd1127ae432ef8d7a4588cee2e1bec12c (patch)
tree68fb7a0ea6f415e611d508e36d83826b5182d51f
parent3b62fc040ef8c5138eefd7c0f1a5880e9271c3b6 (diff)
downloadyuescript-b48aa97dd1127ae432ef8d7a4588cee2e1bec12c.tar.gz
yuescript-b48aa97dd1127ae432ef8d7a4588cee2e1bec12c.tar.bz2
yuescript-b48aa97dd1127ae432ef8d7a4588cee2e1bec12c.zip
fix wasm issue.
-rwxr-xr-xdoc/docs/.vuepress/styles/index.styl1
-rw-r--r--src/yue_wasm.cpp2
2 files changed, 3 insertions, 0 deletions
diff --git a/doc/docs/.vuepress/styles/index.styl b/doc/docs/.vuepress/styles/index.styl
index 69327fd..49f1fd0 100755
--- a/doc/docs/.vuepress/styles/index.styl
+++ b/doc/docs/.vuepress/styles/index.styl
@@ -5,5 +5,6 @@
5 */ 5 */
6 6
7.home .hero img 7.home .hero img
8 width: 450px
8 max-width 450px!important 9 max-width 450px!important
9 10
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