From d55fd3455ba4672feac5b2f85bc35af0aab57ced Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 19 Jul 2016 14:13:00 -0300 Subject: redefine MAXINDEXRK (for debugging, to force most values to go through registers) --- ltests.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'ltests.h') diff --git a/ltests.h b/ltests.h index 2ebe1181..9d26fcb0 100644 --- a/ltests.h +++ b/ltests.h @@ -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 */ -- cgit v1.2.3-55-g6feb