Browse Source

redefinition of LUAI_MAXSTACK to make stack-overflow tests run faster

pull/9/head
Roberto Ierusalimschy 10 years ago
parent
commit
5fae2a5b05
  1. 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…
Cancel
Save