diff options
| author | Li Jin <dragon-fly@qq.com> | 2025-11-05 15:51:18 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2025-11-05 15:52:37 +0800 |
| commit | cd8a5fb1d22ad08ce292c8d399d99d63b8fb7724 (patch) | |
| tree | e4acfae4b6bb8a5fb1c9a8ce95bd93c199cfb69b /src/yue.cpp | |
| parent | 70deb7ea257e7e658266e8e2680de2f99d9fb43f (diff) | |
| download | yuescript-cd8a5fb1d22ad08ce292c8d399d99d63b8fb7724.tar.gz yuescript-cd8a5fb1d22ad08ce292c8d399d99d63b8fb7724.tar.bz2 yuescript-cd8a5fb1d22ad08ce292c8d399d99d63b8fb7724.zip | |
Renamed builtin json lib to "cojson". [skip Upload]v0.29.6
Diffstat (limited to 'src/yue.cpp')
| -rw-r--r-- | src/yue.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yue.cpp b/src/yue.cpp index c6b35e6..5633f54 100644 --- a/src/yue.cpp +++ b/src/yue.cpp | |||
| @@ -82,7 +82,7 @@ static void openlibs(void* state) { | |||
| 82 | luaL_openlibs(L); | 82 | luaL_openlibs(L); |
| 83 | #if LUA_VERSION_NUM > 501 | 83 | #if LUA_VERSION_NUM > 501 |
| 84 | luaL_requiref(L, "yue", luaopen_yue, 0); | 84 | luaL_requiref(L, "yue", luaopen_yue, 0); |
| 85 | luaL_requiref(L, "json", luaopen_colibc_json, 0); | 85 | luaL_requiref(L, "cojson", luaopen_colibc_json, 0); |
| 86 | #else | 86 | #else |
| 87 | lua_pushcfunction(L, luaopen_yue); | 87 | lua_pushcfunction(L, luaopen_yue); |
| 88 | lua_call(L, 0, 0); | 88 | lua_call(L, 0, 0); |
