mirror of
https://github.com/lua/lua.git
synced 2024-11-23 18:23:43 +08:00
redefine MAXINDEXRK (for debugging, to force most values to
go through registers)
This commit is contained in:
parent
0d1c6f4188
commit
d55fd3455b
7
ltests.h
7
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 */
|
||||
|
Loading…
Reference in New Issue
Block a user