redefine MAXINDEXRK (for debugging, to force most values to

go through registers)
This commit is contained in:
Roberto Ierusalimschy 2016-07-19 14:13:00 -03:00
parent 0d1c6f4188
commit d55fd3455b

View File

@ -1,5 +1,5 @@
/*
** $Id: ltests.h,v 2.48 2015/06/18 14:27:44 roberto Exp roberto $
** $Id: ltests.h,v 2.49 2015/09/22 14:18:24 roberto Exp roberto $
** Internal Header for Debugging of the Lua Implementation
** See Copyright Notice in lua.h
*/
@ -98,7 +98,9 @@ LUA_API void *debug_realloc (void *ud, void *block,
#if defined(lua_c)
#define luaL_newstate() lua_newstate(debug_realloc, &l_memcontrol)
#define luaL_openlibs(L) \
{ (luaL_openlibs)(L); luaL_requiref(L, "T", luaB_opentests, 1); }
{ (luaL_openlibs)(L); \
luaL_requiref(L, "T", luaB_opentests, 1); \
lua_pop(L, 1); }
#endif
@ -108,6 +110,7 @@ LUA_API void *debug_realloc (void *ud, void *block,
#undef LUAL_BUFFERSIZE
#define LUAL_BUFFERSIZE 23
#define MINSTRTABSIZE 2
#define MAXINDEXRK 1
/* make stack-overflow tests run faster */