From b2aa2ba046502bdcdfa3de4af898810667c1843a Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy <roberto@inf.puc-rio.br> Date: Sun, 4 Dec 2016 18:17:24 -0200 Subject: using constants for "_LOADED" and "PRELOAD" --- ltests.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ltests.c') diff --git a/ltests.c b/ltests.c index e796fac3..6dba514a 100644 --- a/ltests.c +++ b/ltests.c @@ -1,5 +1,5 @@ /* -** $Id: ltests.c,v 2.209 2015/10/12 16:38:19 roberto Exp roberto $ +** $Id: ltests.c,v 2.210 2016/11/07 12:38:35 roberto Exp roberto $ ** Internal Module for Debugging of the Lua Implementation ** See Copyright Notice in lua.h */ @@ -869,7 +869,7 @@ static int loadlib (lua_State *L) { luaL_requiref(L1, "package", NULL, 1); /* seg. fault if it reloads */ /* ...but should return the same module */ lua_assert(lua_compare(L1, -1, -2, LUA_OPEQ)); - luaL_getsubtable(L1, LUA_REGISTRYINDEX, "_PRELOAD"); + luaL_getsubtable(L1, LUA_REGISTRYINDEX, LUA_PRELOAD_TABLE); for (i = 0; libs[i].name; i++) { lua_pushcfunction(L1, libs[i].func); lua_setfield(L1, -2, libs[i].name); -- cgit v1.2.3-55-g6feb