From ddb5afc6283e13479e866db41350b188aab1a813 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Sun, 19 Sep 2021 17:01:59 +0800 Subject: cleanup. --- src/yue.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/yue.cpp') diff --git a/src/yue.cpp b/src/yue.cpp index f891ebe..b04bd92 100644 --- a/src/yue.cpp +++ b/src/yue.cpp @@ -37,7 +37,8 @@ int luaopen_yue(lua_State* L); static void openlibs(void* state) { lua_State* L = static_cast(state); luaL_openlibs(L); - luaopen_yue(L); + luaL_requiref(L, "yue", luaopen_yue, 1); + lua_pop(L, 1); } void pushYue(lua_State* L, std::string_view name) { -- cgit v1.2.3-55-g6feb