lua

A copy of the Lua development repository
Log | Files | Refs | README

commit 5fae2a5b05735e2853056ab8c415458a4e31917b
parent 36efa6a6b923df9452526b166e8e8561ddf8b07e
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Tue,  9 Dec 2014 15:17:15 -0200

redefinition of LUAI_MAXSTACK to make stack-overflow tests run faster

Diffstat:
Mltests.h | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/ltests.h b/ltests.h @@ -1,5 +1,5 @@ /* -** $Id: ltests.h,v 2.43 2014/12/06 20:42:58 roberto Exp roberto $ +** $Id: ltests.h,v 2.44 2014/12/09 15:00:17 roberto Exp roberto $ ** Internal Header for Debugging of the Lua Implementation ** See Copyright Notice in lua.h */ @@ -101,6 +101,11 @@ LUA_API void *debug_realloc (void *ud, void *block, #define MINSTRTABSIZE 2 +/* make stack-overflow tests run faster */ +#undef LUAI_MAXSTACK +#define LUAI_MAXSTACK 50000 + + #undef LUAI_USER_ALIGNMENT_T #define LUAI_USER_ALIGNMENT_T union { char b[sizeof(void*) * 8]; }