aboutsummaryrefslogtreecommitdiff
path: root/linit.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-11-12 13:48:30 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-11-12 13:48:30 -0200
commit8c21f463ed655f2869c41b6c2f561d7aef7bde7f (patch)
treebb8ce0c2775e4dad45ea2306dfe99ddeddfcb998 /linit.c
parenta1952d9c414a9414107eb0f55afaeea505f9a822 (diff)
downloadlua-8c21f463ed655f2869c41b6c2f561d7aef7bde7f.tar.gz
lua-8c21f463ed655f2869c41b6c2f561d7aef7bde7f.tar.bz2
lua-8c21f463ed655f2869c41b6c2f561d7aef7bde7f.zip
'debug' library is loaded by default
Diffstat (limited to 'linit.c')
-rw-r--r--linit.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/linit.c b/linit.c
index de6e06ec..cc975ec3 100644
--- a/linit.c
+++ b/linit.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: linit.c,v 1.28 2010/07/02 11:38:13 roberto Exp roberto $ 2** $Id: linit.c,v 1.29 2010/10/25 14:32:36 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*/
@@ -36,9 +36,7 @@ static const luaL_Reg loadedlibs[] = {
36 {LUA_STRLIBNAME, luaopen_string}, 36 {LUA_STRLIBNAME, luaopen_string},
37 {LUA_BITLIBNAME, luaopen_bit32}, 37 {LUA_BITLIBNAME, luaopen_bit32},
38 {LUA_MATHLIBNAME, luaopen_math}, 38 {LUA_MATHLIBNAME, luaopen_math},
39#if defined(LUA_COMPAT_DEBUGLIB)
40 {LUA_DBLIBNAME, luaopen_debug}, 39 {LUA_DBLIBNAME, luaopen_debug},
41#endif
42 {NULL, NULL} 40 {NULL, NULL}
43}; 41};
44 42
@@ -47,7 +45,6 @@ static const luaL_Reg loadedlibs[] = {
47** these libs are preloaded and must be required before used 45** these libs are preloaded and must be required before used
48*/ 46*/
49static const luaL_Reg preloadedlibs[] = { 47static const luaL_Reg preloadedlibs[] = {
50 {LUA_DBLIBNAME, luaopen_debug},
51 {NULL, NULL} 48 {NULL, NULL}
52}; 49};
53 50