redefinition of LUAI_MAXSTACK to make stack-overflow tests run faster

This commit is contained in:
Roberto Ierusalimschy 2014-12-09 15:17:40 -02:00
parent 36efa6a6b9
commit 5fae2a5b05
1 changed files with 6 additions and 1 deletions

View File

@ -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]; }