aboutsummaryrefslogtreecommitdiff
path: root/ltests.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-12-07 11:17:30 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-12-07 11:17:30 -0300
commite2ea3b31c94bb3e1da27c233661cb2a16699c685 (patch)
tree1d817c8d90e5fbd2c52dff18383a085f2bc847c1 /ltests.h
parent23051e830a8b212f831443eb888e93e30fa8bb19 (diff)
downloadlua-e2ea3b31c94bb3e1da27c233661cb2a16699c685.tar.gz
lua-e2ea3b31c94bb3e1da27c233661cb2a16699c685.tar.bz2
lua-e2ea3b31c94bb3e1da27c233661cb2a16699c685.zip
Details (do not affect regular code)
* Avoids multiple definitions of 'lua_assert' in test file. * Smaller C-stack limit in test mode. * Note in the manual about the use of false * Extra test for constant reuse.
Diffstat (limited to 'ltests.h')
-rw-r--r--ltests.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ltests.h b/ltests.h
index f8c4466f..cb3a0b48 100644
--- a/ltests.h
+++ b/ltests.h
@@ -130,6 +130,11 @@ LUA_API void *debug_realloc (void *ud, void *block,
130#define LUAI_MAXSTACK 50000 130#define LUAI_MAXSTACK 50000
131 131
132 132
133/* test mode uses more stack space */
134#undef LUAI_MAXCCALLS
135#define LUAI_MAXCCALLS 180
136
137
133/* force Lua to use its own implementations */ 138/* force Lua to use its own implementations */
134#undef lua_strx2number 139#undef lua_strx2number
135#undef lua_number2strx 140#undef lua_number2strx