aboutsummaryrefslogtreecommitdiff
path: root/ltests.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-12-09 15:17:40 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-12-09 15:17:40 -0200
commit5fae2a5b05735e2853056ab8c415458a4e31917b (patch)
tree064f53cdb615d2cd950a9598bcf997ab1a876bde /ltests.h
parent36efa6a6b923df9452526b166e8e8561ddf8b07e (diff)
downloadlua-5fae2a5b05735e2853056ab8c415458a4e31917b.tar.gz
lua-5fae2a5b05735e2853056ab8c415458a4e31917b.tar.bz2
lua-5fae2a5b05735e2853056ab8c415458a4e31917b.zip
redefinition of LUAI_MAXSTACK to make stack-overflow tests run faster
Diffstat (limited to 'ltests.h')
-rw-r--r--ltests.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/ltests.h b/ltests.h
index 32599731..68ecbfa6 100644
--- a/ltests.h
+++ b/ltests.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltests.h,v 2.43 2014/12/06 20:42:58 roberto Exp roberto $ 2** $Id: ltests.h,v 2.44 2014/12/09 15:00:17 roberto Exp roberto $
3** Internal Header for Debugging of the Lua Implementation 3** Internal Header for Debugging of the Lua Implementation
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -101,6 +101,11 @@ LUA_API void *debug_realloc (void *ud, void *block,
101#define MINSTRTABSIZE 2 101#define MINSTRTABSIZE 2
102 102
103 103
104/* make stack-overflow tests run faster */
105#undef LUAI_MAXSTACK
106#define LUAI_MAXSTACK 50000
107
108
104#undef LUAI_USER_ALIGNMENT_T 109#undef LUAI_USER_ALIGNMENT_T
105#define LUAI_USER_ALIGNMENT_T union { char b[sizeof(void*) * 8]; } 110#define LUAI_USER_ALIGNMENT_T union { char b[sizeof(void*) * 8]; }
106 111