diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2008-01-02 14:16:28 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2008-01-02 14:16:28 -0200 |
commit | 47b48583575f1b0b720bd9767527895a0ef3a385 (patch) | |
tree | 84530620d6965d3f7409d7d5c4b1c9d629bfeffd /linit.c | |
parent | b8d23d6e07505742bc8084df6d0f9d87a760dba7 (diff) | |
download | lua-47b48583575f1b0b720bd9767527895a0ef3a385.tar.gz lua-47b48583575f1b0b720bd9767527895a0ef3a385.tar.bz2 lua-47b48583575f1b0b720bd9767527895a0ef3a385.zip |
detail ('name' of baselib is "_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.14 2005/12/29 15:32:11 roberto Exp roberto $ | 2 | ** $Id: linit.c,v 1.15 2007/06/22 16:59:11 roberto Exp roberto $ |
3 | ** Initialization of libraries for lua.c | 3 | ** Initialization of libraries for lua.c |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -18,7 +18,7 @@ | |||
18 | ** these libs are preloaded in Lua and are readily available to any program | 18 | ** these libs are preloaded in Lua and are readily available to any program |
19 | */ | 19 | */ |
20 | static const luaL_Reg lualibs[] = { | 20 | static const luaL_Reg lualibs[] = { |
21 | {"", luaopen_base}, | 21 | {"_G", luaopen_base}, |
22 | {LUA_LOADLIBNAME, luaopen_package}, | 22 | {LUA_LOADLIBNAME, luaopen_package}, |
23 | {LUA_TABLIBNAME, luaopen_table}, | 23 | {LUA_TABLIBNAME, luaopen_table}, |
24 | {LUA_IOLIBNAME, luaopen_io}, | 24 | {LUA_IOLIBNAME, luaopen_io}, |