diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2016-07-19 14:13:00 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2016-07-19 14:13:00 -0300 |
commit | d55fd3455ba4672feac5b2f85bc35af0aab57ced (patch) | |
tree | 89e8fb96d210620f91035ec7950b9c743f9c4e1f | |
parent | 0d1c6f4188fe278d505f801d3bb8f8fd4749c8c4 (diff) | |
download | lua-d55fd3455ba4672feac5b2f85bc35af0aab57ced.tar.gz lua-d55fd3455ba4672feac5b2f85bc35af0aab57ced.tar.bz2 lua-d55fd3455ba4672feac5b2f85bc35af0aab57ced.zip |
redefine MAXINDEXRK (for debugging, to force most values to
go through registers)
-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 */ |