From 47b48583575f1b0b720bd9767527895a0ef3a385 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 2 Jan 2008 14:16:28 -0200 Subject: detail ('name' of baselib is "_G") --- linit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'linit.c') diff --git a/linit.c b/linit.c index 3b8fc1c6..dc0864fd 100644 --- a/linit.c +++ b/linit.c @@ -1,5 +1,5 @@ /* -** $Id: linit.c,v 1.14 2005/12/29 15:32:11 roberto Exp roberto $ +** $Id: linit.c,v 1.15 2007/06/22 16:59:11 roberto Exp roberto $ ** Initialization of libraries for lua.c ** See Copyright Notice in lua.h */ @@ -18,7 +18,7 @@ ** these libs are preloaded in Lua and are readily available to any program */ static const luaL_Reg lualibs[] = { - {"", luaopen_base}, + {"_G", luaopen_base}, {LUA_LOADLIBNAME, luaopen_package}, {LUA_TABLIBNAME, luaopen_table}, {LUA_IOLIBNAME, luaopen_io}, -- cgit v1.2.3-55-g6feb