diff options
author | Li Jin <dragon-fly@qq.com> | 2023-03-24 09:06:11 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2023-03-24 09:06:11 +0800 |
commit | 40d2e58584fe1dc71db23716f67ded166d4489ce (patch) | |
tree | 4e3bd1c7490f21f81c9496804410db790f11b003 /src/yue.cpp | |
parent | 40b4b41d27573904203bdbba311e78aa44ae421d (diff) | |
download | yuescript-40d2e58584fe1dc71db23716f67ded166d4489ce.tar.gz yuescript-40d2e58584fe1dc71db23716f67ded166d4489ce.tar.bz2 yuescript-40d2e58584fe1dc71db23716f67ded166d4489ce.zip |
stop adding yue to globals, fix issue #128.
Diffstat (limited to 'src/yue.cpp')
-rw-r--r-- | src/yue.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yue.cpp b/src/yue.cpp index 8edac36..98bf4b4 100644 --- a/src/yue.cpp +++ b/src/yue.cpp | |||
@@ -44,7 +44,7 @@ static void openlibs(void* state) { | |||
44 | lua_State* L = static_cast<lua_State*>(state); | 44 | lua_State* L = static_cast<lua_State*>(state); |
45 | luaL_openlibs(L); | 45 | luaL_openlibs(L); |
46 | #if LUA_VERSION_NUM > 501 | 46 | #if LUA_VERSION_NUM > 501 |
47 | luaL_requiref(L, "yue", luaopen_yue, 1); | 47 | luaL_requiref(L, "yue", luaopen_yue, 0); |
48 | #else | 48 | #else |
49 | lua_pushcfunction(L, luaopen_yue); | 49 | lua_pushcfunction(L, luaopen_yue); |
50 | lua_call(L, 0, 0); | 50 | lua_call(L, 0, 0); |