diff options
| author | Li Jin <dragon-fly@qq.com> | 2021-09-19 17:01:59 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2021-09-19 17:01:59 +0800 |
| commit | ddb5afc6283e13479e866db41350b188aab1a813 (patch) | |
| tree | 6a56fcdbd8bb0f642c49e58546d0842f82536509 /src/yue.cpp | |
| parent | 8e02ec2eefc700b0ef307f24596e7c36bdd84a4f (diff) | |
| download | yuescript-ddb5afc6283e13479e866db41350b188aab1a813.tar.gz yuescript-ddb5afc6283e13479e866db41350b188aab1a813.tar.bz2 yuescript-ddb5afc6283e13479e866db41350b188aab1a813.zip | |
cleanup.
Diffstat (limited to '')
| -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) { |
