diff options
-rw-r--r-- | linit.c | 5 | ||||
-rw-r--r-- | luaconf.h | 20 |
2 files changed, 7 insertions, 18 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 | ||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: luaconf.h,v 1.149 2010/11/03 15:16:17 roberto Exp roberto $ | 2 | ** $Id: luaconf.h,v 1.150 2010/11/10 17:38:10 roberto Exp roberto $ |
3 | ** Configuration file for Lua | 3 | ** Configuration file for Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -229,7 +229,7 @@ | |||
229 | ** You can define it to get all options, or change specific options | 229 | ** You can define it to get all options, or change specific options |
230 | ** to fit your specific needs. | 230 | ** to fit your specific needs. |
231 | */ | 231 | */ |
232 | #if defined(LUA_COMPAT_ALL) | 232 | #if defined(LUA_COMPAT_ALL) /* { */ |
233 | 233 | ||
234 | /* | 234 | /* |
235 | @@ LUA_COMPAT_UNPACK controls the presence of global 'unpack'. | 235 | @@ LUA_COMPAT_UNPACK controls the presence of global 'unpack'. |
@@ -238,8 +238,8 @@ | |||
238 | #define LUA_COMPAT_UNPACK | 238 | #define LUA_COMPAT_UNPACK |
239 | 239 | ||
240 | /* | 240 | /* |
241 | @@ LUA_COMPAT_CPCALL controls the presence of macro 'lua_cpcall'. | 241 | @@ macro 'lua_cpcall' emulates deprecated function lua_cpcall. |
242 | ** You can call your C function directly (with light C functions) | 242 | ** You can call your C function directly (with light C functions). |
243 | */ | 243 | */ |
244 | #define lua_cpcall(L,f,u) \ | 244 | #define lua_cpcall(L,f,u) \ |
245 | (lua_pushcfunction(L, (f)), \ | 245 | (lua_pushcfunction(L, (f)), \ |
@@ -259,14 +259,6 @@ | |||
259 | #define LUA_COMPAT_MAXN | 259 | #define LUA_COMPAT_MAXN |
260 | 260 | ||
261 | /* | 261 | /* |
262 | @@ LUA_COMPAT_DEBUGLIB controls compatibility with preloading | ||
263 | ** the debug library. | ||
264 | ** You should add 'require"debug"' everywhere you need the debug | ||
265 | ** library. | ||
266 | */ | ||
267 | #define LUA_COMPAT_DEBUGLIB | ||
268 | |||
269 | /* | ||
270 | @@ The following macros supply trivial compatibility for some | 262 | @@ The following macros supply trivial compatibility for some |
271 | ** changes in the API. The macros themselves document how to | 263 | ** changes in the API. The macros themselves document how to |
272 | ** change your code to avoid using them. | 264 | ** change your code to avoid using them. |
@@ -275,7 +267,7 @@ | |||
275 | 267 | ||
276 | #define lua_objlen(L,i) lua_rawlen(L, (i)) | 268 | #define lua_objlen(L,i) lua_rawlen(L, (i)) |
277 | 269 | ||
278 | #define lua_equal(L,idx1,idx2) lua_compare(L,(idx1),(idx2),LUA_OPEQ) | 270 | #define lua_equal(L,idx1,idx2) lua_compare(L,(idx1),(idx2),LUA_OPEQ) |
279 | #define lua_lessthan(L,idx1,idx2) lua_compare(L,(idx1),(idx2),LUA_OPLT) | 271 | #define lua_lessthan(L,idx1,idx2) lua_compare(L,(idx1),(idx2),LUA_OPLT) |
280 | 272 | ||
281 | /* | 273 | /* |
@@ -284,7 +276,7 @@ | |||
284 | */ | 276 | */ |
285 | #define LUA_COMPAT_MODULE | 277 | #define LUA_COMPAT_MODULE |
286 | 278 | ||
287 | #endif /* LUA_COMPAT_ALL */ | 279 | #endif /* } */ |
288 | 280 | ||
289 | /* }================================================================== */ | 281 | /* }================================================================== */ |
290 | 282 | ||