diff options
Diffstat (limited to 'src/yue.cpp')
-rw-r--r-- | src/yue.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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); | |||
37 | static void openlibs(void* state) { | 37 | static void openlibs(void* state) { |
38 | lua_State* L = static_cast<lua_State*>(state); | 38 | lua_State* L = static_cast<lua_State*>(state); |
39 | luaL_openlibs(L); | 39 | luaL_openlibs(L); |
40 | luaopen_yue(L); | 40 | luaL_requiref(L, "yue", luaopen_yue, 1); |
41 | lua_pop(L, 1); | ||
41 | } | 42 | } |
42 | 43 | ||
43 | void pushYue(lua_State* L, std::string_view name) { | 44 | void pushYue(lua_State* L, std::string_view name) { |