diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-11-12 13:48:30 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-11-12 13:48:30 -0200 |
| commit | 8c21f463ed655f2869c41b6c2f561d7aef7bde7f (patch) | |
| tree | bb8ce0c2775e4dad45ea2306dfe99ddeddfcb998 /linit.c | |
| parent | a1952d9c414a9414107eb0f55afaeea505f9a822 (diff) | |
| download | lua-8c21f463ed655f2869c41b6c2f561d7aef7bde7f.tar.gz lua-8c21f463ed655f2869c41b6c2f561d7aef7bde7f.tar.bz2 lua-8c21f463ed655f2869c41b6c2f561d7aef7bde7f.zip | |
'debug' library is loaded by default
Diffstat (limited to '')
| -rw-r--r-- | linit.c | 5 |
1 files changed, 1 insertions, 4 deletions
| @@ -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 | */ |
| 49 | static const luaL_Reg preloadedlibs[] = { | 47 | static const luaL_Reg preloadedlibs[] = { |
| 50 | {LUA_DBLIBNAME, luaopen_debug}, | ||
| 51 | {NULL, NULL} | 48 | {NULL, NULL} |
| 52 | }; | 49 | }; |
| 53 | 50 | ||
