summaryrefslogtreecommitdiff
path: root/Source/3rdParty/Lua51/loadlib.c
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-03-16 13:03:50 +0800
committerchai <chaifix@163.com>2019-03-16 13:03:50 +0800
commit1ab2501db0f9e14f138292880e37120e7a6184de (patch)
tree2d1cfa82a9a6a3a0f16e516f100b2acb6f7e0e4e /Source/3rdParty/Lua51/loadlib.c
parent95d27af75eb2aff8020e073eff8dfeb074b5bba6 (diff)
*luax
Diffstat (limited to 'Source/3rdParty/Lua51/loadlib.c')
-rw-r--r--Source/3rdParty/Lua51/loadlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/3rdParty/Lua51/loadlib.c b/Source/3rdParty/Lua51/loadlib.c
index 6158c53..9455c53 100644
--- a/Source/3rdParty/Lua51/loadlib.c
+++ b/Source/3rdParty/Lua51/loadlib.c
@@ -654,7 +654,7 @@ LUALIB_API int luaopen_package (lua_State *L) {
lua_setfield(L, -2, "config");
/* set field `loaded' */
luaL_findtable(L, LUA_REGISTRYINDEX, "_LOADED", 2);
- lua_setfield(L, -2, "loaded");
+ lua_setfield(L, -2, "loaded"); // LUA_REGISTRYINDEX["_LOADED"]Ϊpackage.loaded\LUA_ENVIRONINDEX["loaded"]
/* set field `preload' */
lua_newtable(L);
lua_setfield(L, -2, "preload");