diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-06-27 15:32:49 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-06-27 15:32:49 -0300 |
commit | 5a1c8d8ef343bf0157851a4832c2c937b812b64f (patch) | |
tree | 61948343a233dae64a1d02b7c77b00f5b7eba6da /linit.c | |
parent | 124bfd20817d4624d2b69a4dc41182485912b821 (diff) | |
download | lua-5a1c8d8ef343bf0157851a4832c2c937b812b64f.tar.gz lua-5a1c8d8ef343bf0157851a4832c2c937b812b64f.tar.bz2 lua-5a1c8d8ef343bf0157851a4832c2c937b812b64f.zip |
new constant 'LUA_GNAME' for the name of the global table "_G"
Diffstat (limited to 'linit.c')
-rw-r--r-- | linit.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: linit.c,v 1.38 2015/01/05 13:48:33 roberto Exp roberto $ | 2 | ** $Id: linit.c,v 1.39 2016/12/04 20:17:24 roberto Exp roberto $ |
3 | ** Initialization of libraries for lua.c and other clients | 3 | ** Initialization of libraries for lua.c and other clients |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -40,7 +40,7 @@ | |||
40 | ** program | 40 | ** program |
41 | */ | 41 | */ |
42 | static const luaL_Reg loadedlibs[] = { | 42 | static const luaL_Reg loadedlibs[] = { |
43 | {"_G", luaopen_base}, | 43 | {LUA_GNAME, luaopen_base}, |
44 | {LUA_LOADLIBNAME, luaopen_package}, | 44 | {LUA_LOADLIBNAME, luaopen_package}, |
45 | {LUA_COLIBNAME, luaopen_coroutine}, | 45 | {LUA_COLIBNAME, luaopen_coroutine}, |
46 | {LUA_TABLIBNAME, luaopen_table}, | 46 | {LUA_TABLIBNAME, luaopen_table}, |