aboutsummaryrefslogtreecommitdiff
path: root/linit.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-06-27 15:32:49 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-06-27 15:32:49 -0300
commit5a1c8d8ef343bf0157851a4832c2c937b812b64f (patch)
tree61948343a233dae64a1d02b7c77b00f5b7eba6da /linit.c
parent124bfd20817d4624d2b69a4dc41182485912b821 (diff)
downloadlua-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linit.c b/linit.c
index 897ae352..3c2b6023 100644
--- a/linit.c
+++ b/linit.c
@@ -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*/
42static const luaL_Reg loadedlibs[] = { 42static 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},