diff options
-rw-r--r-- | ltests.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltests.h,v 2.48 2015/06/18 14:27:44 roberto Exp roberto $ | 2 | ** $Id: ltests.h,v 2.49 2015/09/22 14:18:24 roberto Exp roberto $ |
3 | ** Internal Header for Debugging of the Lua Implementation | 3 | ** Internal Header for Debugging of the Lua Implementation |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -98,7 +98,9 @@ LUA_API void *debug_realloc (void *ud, void *block, | |||
98 | #if defined(lua_c) | 98 | #if defined(lua_c) |
99 | #define luaL_newstate() lua_newstate(debug_realloc, &l_memcontrol) | 99 | #define luaL_newstate() lua_newstate(debug_realloc, &l_memcontrol) |
100 | #define luaL_openlibs(L) \ | 100 | #define luaL_openlibs(L) \ |
101 | { (luaL_openlibs)(L); luaL_requiref(L, "T", luaB_opentests, 1); } | 101 | { (luaL_openlibs)(L); \ |
102 | luaL_requiref(L, "T", luaB_opentests, 1); \ | ||
103 | lua_pop(L, 1); } | ||
102 | #endif | 104 | #endif |
103 | 105 | ||
104 | 106 | ||
@@ -108,6 +110,7 @@ LUA_API void *debug_realloc (void *ud, void *block, | |||
108 | #undef LUAL_BUFFERSIZE | 110 | #undef LUAL_BUFFERSIZE |
109 | #define LUAL_BUFFERSIZE 23 | 111 | #define LUAL_BUFFERSIZE 23 |
110 | #define MINSTRTABSIZE 2 | 112 | #define MINSTRTABSIZE 2 |
113 | #define MAXINDEXRK 1 | ||
111 | 114 | ||
112 | 115 | ||
113 | /* make stack-overflow tests run faster */ | 116 | /* make stack-overflow tests run faster */ |