From 5a1c8d8ef343bf0157851a4832c2c937b812b64f Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 27 Jun 2017 15:32:49 -0300 Subject: new constant 'LUA_GNAME' for the name of the global table "_G" --- ltests.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ltests.c') diff --git a/ltests.c b/ltests.c index 8b2c0ee1..36da64e8 100644 --- a/ltests.c +++ b/ltests.c @@ -1,5 +1,5 @@ /* -** $Id: ltests.c,v 2.220 2017/06/12 14:21:44 roberto Exp roberto $ +** $Id: ltests.c,v 2.221 2017/06/27 11:35:31 roberto Exp roberto $ ** Internal Module for Debugging of the Lua Implementation ** See Copyright Notice in lua.h */ @@ -960,7 +960,7 @@ static lua_State *getstate (lua_State *L) { static int loadlib (lua_State *L) { static const luaL_Reg libs[] = { - {"_G", luaopen_base}, + {LUA_GNAME, luaopen_base}, {"coroutine", luaopen_coroutine}, {"debug", luaopen_debug}, {"io", luaopen_io}, -- cgit v1.2.3-55-g6feb