aboutsummaryrefslogtreecommitdiff
path: root/src/yue.cpp
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2023-03-24 09:06:11 +0800
committerLi Jin <dragon-fly@qq.com>2023-03-24 09:06:11 +0800
commit40d2e58584fe1dc71db23716f67ded166d4489ce (patch)
tree4e3bd1c7490f21f81c9496804410db790f11b003 /src/yue.cpp
parent40b4b41d27573904203bdbba311e78aa44ae421d (diff)
downloadyuescript-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.cpp2
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);