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 /ltests.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 'ltests.c')
-rw-r--r-- | ltests.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltests.c,v 2.220 2017/06/12 14:21:44 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 2.221 2017/06/27 11:35:31 roberto Exp roberto $ |
3 | ** Internal Module for Debugging of the Lua Implementation | 3 | ** Internal Module for Debugging of the Lua Implementation |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -960,7 +960,7 @@ static lua_State *getstate (lua_State *L) { | |||
960 | 960 | ||
961 | static int loadlib (lua_State *L) { | 961 | static int loadlib (lua_State *L) { |
962 | static const luaL_Reg libs[] = { | 962 | static const luaL_Reg libs[] = { |
963 | {"_G", luaopen_base}, | 963 | {LUA_GNAME, luaopen_base}, |
964 | {"coroutine", luaopen_coroutine}, | 964 | {"coroutine", luaopen_coroutine}, |
965 | {"debug", luaopen_debug}, | 965 | {"debug", luaopen_debug}, |
966 | {"io", luaopen_io}, | 966 | {"io", luaopen_io}, |