aboutsummaryrefslogtreecommitdiff
path: root/linit.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-12-17 10:26:09 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-12-17 10:26:09 -0200
commitde6fc75d630b393d8b577ba03353abe527523d0f (patch)
tree385cb83b63b2ec409cde308c776e7c4c2073ff84 /linit.c
parent2af0d3b4598060b1086884cfb879d39fa4e0c89a (diff)
downloadlua-de6fc75d630b393d8b577ba03353abe527523d0f.tar.gz
lua-de6fc75d630b393d8b577ba03353abe527523d0f.tar.bz2
lua-de6fc75d630b393d8b577ba03353abe527523d0f.zip
several configuration options that do not change often moved out of
luaconf.h and into more internal files
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 cb194d11..264a4457 100644
--- a/linit.c
+++ b/linit.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: linit.c,v 1.20 2009/09/05 12:39:29 roberto Exp roberto $ 2** $Id: linit.c,v 1.21 2009/12/11 13:40:44 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*/
@@ -63,7 +63,7 @@ LUALIB_API void luaL_openlibs (lua_State *L) {
63 lua_setfield(L, -2, lib->name); 63 lua_setfield(L, -2, lib->name);
64 } 64 }
65 lua_pop(L, 1); /* remove package.preload table */ 65 lua_pop(L, 1); /* remove package.preload table */
66#ifdef LUA_COMPAT_DEBUGLIB 66#if defined(LUA_COMPAT_DEBUGLIB)
67 lua_getfield(L, LUA_GLOBALSINDEX, "require"); 67 lua_getfield(L, LUA_GLOBALSINDEX, "require");
68 lua_pushliteral(L, LUA_DBLIBNAME); 68 lua_pushliteral(L, LUA_DBLIBNAME);
69 lua_call(L, 1, 0); /* call 'require"debug"' */ 69 lua_call(L, 1, 0); /* call 'require"debug"' */