mirror of
https://github.com/lua/lua
synced 2024-12-26 12:27:01 +03:00
redefinition of LUAI_MAXSTACK to make stack-overflow tests run faster
This commit is contained in:
parent
36efa6a6b9
commit
5fae2a5b05
7
ltests.h
7
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]; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user