aboutsummaryrefslogtreecommitdiff
path: root/src/yue.cpp
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2021-09-19 17:01:59 +0800
committerLi Jin <dragon-fly@qq.com>2021-09-19 17:01:59 +0800
commitddb5afc6283e13479e866db41350b188aab1a813 (patch)
tree6a56fcdbd8bb0f642c49e58546d0842f82536509 /src/yue.cpp
parent8e02ec2eefc700b0ef307f24596e7c36bdd84a4f (diff)
downloadyuescript-ddb5afc6283e13479e866db41350b188aab1a813.tar.gz
yuescript-ddb5afc6283e13479e866db41350b188aab1a813.tar.bz2
yuescript-ddb5afc6283e13479e866db41350b188aab1a813.zip
cleanup.
Diffstat (limited to 'src/yue.cpp')
-rw-r--r--src/yue.cpp3
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);
37static void openlibs(void* state) { 37static 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
43void pushYue(lua_State* L, std::string_view name) { 44void pushYue(lua_State* L, std::string_view name) {