From 40d2e58584fe1dc71db23716f67ded166d4489ce Mon Sep 17 00:00:00 2001 From: Li Jin Date: Fri, 24 Mar 2023 09:06:11 +0800 Subject: stop adding yue to globals, fix issue #128. --- src/yue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/yue.cpp') 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) { lua_State* L = static_cast(state); luaL_openlibs(L); #if LUA_VERSION_NUM > 501 - luaL_requiref(L, "yue", luaopen_yue, 1); + luaL_requiref(L, "yue", luaopen_yue, 0); #else lua_pushcfunction(L, luaopen_yue); lua_call(L, 0, 0); -- cgit v1.2.3-55-g6feb