'debug' library is loaded by default

This commit is contained in:
Roberto Ierusalimschy
2010-11-12 13:48:30 -02:00
parent a1952d9c41
commit 8c21f463ed
2 changed files with 7 additions and 18 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: linit.c,v 1.28 2010/07/02 11:38:13 roberto Exp roberto $
** $Id: linit.c,v 1.29 2010/10/25 14:32:36 roberto Exp roberto $
** Initialization of libraries for lua.c and other clients
** See Copyright Notice in lua.h
*/
@@ -36,9 +36,7 @@ static const luaL_Reg loadedlibs[] = {
{LUA_STRLIBNAME, luaopen_string},
{LUA_BITLIBNAME, luaopen_bit32},
{LUA_MATHLIBNAME, luaopen_math},
#if defined(LUA_COMPAT_DEBUGLIB)
{LUA_DBLIBNAME, luaopen_debug},
#endif
{NULL, NULL}
};
@@ -47,7 +45,6 @@ static const luaL_Reg loadedlibs[] = {
** these libs are preloaded and must be required before used
*/
static const luaL_Reg preloadedlibs[] = {
{LUA_DBLIBNAME, luaopen_debug},
{NULL, NULL}
};