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" --- linit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'linit.c') diff --git a/linit.c b/linit.c index 897ae352..3c2b6023 100644 --- a/linit.c +++ b/linit.c @@ -1,5 +1,5 @@ /* -** $Id: linit.c,v 1.38 2015/01/05 13:48:33 roberto Exp roberto $ +** $Id: linit.c,v 1.39 2016/12/04 20:17:24 roberto Exp roberto $ ** Initialization of libraries for lua.c and other clients ** See Copyright Notice in lua.h */ @@ -40,7 +40,7 @@ ** program */ static const luaL_Reg loadedlibs[] = { - {"_G", luaopen_base}, + {LUA_GNAME, luaopen_base}, {LUA_LOADLIBNAME, luaopen_package}, {LUA_COLIBNAME, luaopen_coroutine}, {LUA_TABLIBNAME, luaopen_table}, -- cgit v1.2.3-55-g6feb