summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2016-07-19 14:13:00 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2016-07-19 14:13:00 -0300
commitd55fd3455ba4672feac5b2f85bc35af0aab57ced (patch)
tree89e8fb96d210620f91035ec7950b9c743f9c4e1f
parent0d1c6f4188fe278d505f801d3bb8f8fd4749c8c4 (diff)
downloadlua-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.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/ltests.h b/ltests.h
index 2ebe1181..9d26fcb0 100644
--- a/ltests.h
+++ b/ltests.h
@@ -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 */