Use portable macro to get global variable.

This commit is contained in:
Vsevolod Stakhov 2015-03-08 23:45:29 +00:00
parent ac69ad95af
commit dabf6b6e48

View File

@ -35,7 +35,7 @@ traceback (lua_State *L)
return 1;
}
lua_getfield (L, LUA_GLOBALSINDEX, "debug");
lua_getglobal (L, "debug");
if (!lua_istable(L, -1)) {
lua_pop(L, 1);