diff options
Diffstat (limited to '')
-rw-r--r-- | ltests.h | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -14,6 +14,7 @@ | |||
14 | /* test Lua with compatibility code */ | 14 | /* test Lua with compatibility code */ |
15 | #define LUA_COMPAT_MATHLIB | 15 | #define LUA_COMPAT_MATHLIB |
16 | #define LUA_COMPAT_LT_LE | 16 | #define LUA_COMPAT_LT_LE |
17 | #undef LUA_COMPAT_GLOBAL | ||
17 | 18 | ||
18 | 19 | ||
19 | #define LUA_DEBUG | 20 | #define LUA_DEBUG |
@@ -44,8 +45,8 @@ | |||
44 | #define LUA_RAND32 | 45 | #define LUA_RAND32 |
45 | 46 | ||
46 | 47 | ||
47 | /* test stack reallocation with strict address use */ | 48 | /* test stack reallocation without strict address use */ |
48 | #define LUAI_STRICT_ADDRESS 1 | 49 | #define LUAI_STRICT_ADDRESS 0 |
49 | 50 | ||
50 | 51 | ||
51 | /* memory-allocator control variables */ | 52 | /* memory-allocator control variables */ |
@@ -94,6 +95,7 @@ LUAI_FUNC void lua_printvalue (struct TValue *v); | |||
94 | ** Function to print the stack | 95 | ** Function to print the stack |
95 | */ | 96 | */ |
96 | LUAI_FUNC void lua_printstack (lua_State *L); | 97 | LUAI_FUNC void lua_printstack (lua_State *L); |
98 | LUAI_FUNC int lua_printallstack (lua_State *L); | ||
97 | 99 | ||
98 | 100 | ||
99 | /* test for lock/unlock */ | 101 | /* test for lock/unlock */ |
@@ -141,9 +143,6 @@ LUA_API void *debug_realloc (void *ud, void *block, | |||
141 | #define STRCACHE_N 23 | 143 | #define STRCACHE_N 23 |
142 | #define STRCACHE_M 5 | 144 | #define STRCACHE_M 5 |
143 | 145 | ||
144 | #undef LUAI_USER_ALIGNMENT_T | ||
145 | #define LUAI_USER_ALIGNMENT_T union { char b[sizeof(void*) * 8]; } | ||
146 | |||
147 | 146 | ||
148 | /* | 147 | /* |
149 | ** This one is not compatible with tests for opcode optimizations, | 148 | ** This one is not compatible with tests for opcode optimizations, |
@@ -156,7 +155,6 @@ LUA_API void *debug_realloc (void *ud, void *block, | |||
156 | ** Reduce maximum stack size to make stack-overflow tests run faster. | 155 | ** Reduce maximum stack size to make stack-overflow tests run faster. |
157 | ** (But value is still large enough to overflow smaller integers.) | 156 | ** (But value is still large enough to overflow smaller integers.) |
158 | */ | 157 | */ |
159 | #undef LUAI_MAXSTACK | ||
160 | #define LUAI_MAXSTACK 68000 | 158 | #define LUAI_MAXSTACK 68000 |
161 | 159 | ||
162 | 160 | ||