aboutsummaryrefslogtreecommitdiff
path: root/ltests.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-12-18 11:01:49 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-12-18 11:01:49 -0200
commit7024f49c422956259c620fe6673ac42b33398adb (patch)
treebf492396eb95d9c2013936b14bf16cdd0fbdecdc /ltests.h
parent2f6f6abeba452bbbbaeb0e4d70e748e46d314894 (diff)
downloadlua-7024f49c422956259c620fe6673ac42b33398adb.tar.gz
lua-7024f49c422956259c620fe6673ac42b33398adb.tar.bz2
lua-7024f49c422956259c620fe6673ac42b33398adb.zip
default now is compiling without compatibility options + smaller
stack size in debug mode (clang uses still more stack space when debugging).
Diffstat (limited to 'ltests.h')
-rw-r--r--ltests.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/ltests.h b/ltests.h
index 25598c0e..001b205c 100644
--- a/ltests.h
+++ b/ltests.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltests.h,v 2.53 2017/11/23 16:35:54 roberto Exp roberto $ 2** $Id: ltests.h,v 2.54 2017/12/07 18:51:39 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*/
@@ -11,18 +11,18 @@
11#include <stdio.h> 11#include <stdio.h>
12#include <stdlib.h> 12#include <stdlib.h>
13 13
14/* test Lua with no compatibility code */ 14/* test Lua with compatibility code */
15#undef LUA_COMPAT_MATHLIB 15#define LUA_COMPAT_MATHLIB
16#undef LUA_COMPAT_IPAIRS 16#define LUA_COMPAT_IPAIRS
17#undef LUA_COMPAT_BITLIB 17#define LUA_COMPAT_BITLIB
18#undef LUA_COMPAT_APIINTCASTS 18#define LUA_COMPAT_APIINTCASTS
19#undef LUA_COMPAT_FLOATSTRING 19#define LUA_COMPAT_FLOATSTRING
20#undef LUA_COMPAT_UNPACK 20#define LUA_COMPAT_UNPACK
21#undef LUA_COMPAT_LOADERS 21#define LUA_COMPAT_LOADERS
22#undef LUA_COMPAT_LOG10 22#define LUA_COMPAT_LOG10
23#undef LUA_COMPAT_LOADSTRING 23#define LUA_COMPAT_LOADSTRING
24#undef LUA_COMPAT_MAXN 24#define LUA_COMPAT_MAXN
25#undef LUA_COMPAT_MODULE 25#define LUA_COMPAT_MODULE
26 26
27 27
28#define LUA_DEBUG 28#define LUA_DEBUG
@@ -36,7 +36,7 @@
36 36
37/* compiled with -O0, Lua uses a lot of C stack space... */ 37/* compiled with -O0, Lua uses a lot of C stack space... */
38#undef LUAI_MAXCCALLS 38#undef LUAI_MAXCCALLS
39#define LUAI_MAXCCALLS 300 39#define LUAI_MAXCCALLS 200
40 40
41/* to avoid warnings, and to make sure value is really unused */ 41/* to avoid warnings, and to make sure value is really unused */
42#define UNUSED(x) (x=0, (void)(x)) 42#define UNUSED(x) (x=0, (void)(x))