diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2020-12-07 11:17:30 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2020-12-07 11:17:30 -0300 |
commit | e2ea3b31c94bb3e1da27c233661cb2a16699c685 (patch) | |
tree | 1d817c8d90e5fbd2c52dff18383a085f2bc847c1 /lauxlib.h | |
parent | 23051e830a8b212f831443eb888e93e30fa8bb19 (diff) | |
download | lua-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 'lauxlib.h')
-rw-r--r-- | lauxlib.h | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -160,11 +160,15 @@ LUALIB_API void (luaL_requiref) (lua_State *L, const char *modname, | |||
160 | /* | 160 | /* |
161 | ** Internal assertions for in-house debugging | 161 | ** Internal assertions for in-house debugging |
162 | */ | 162 | */ |
163 | #if !defined(lua_assert) | ||
164 | |||
163 | #if defined LUAI_ASSERT | 165 | #if defined LUAI_ASSERT |
164 | #include <assert.h> | 166 | #include <assert.h> |
165 | #define lua_assert(c) assert(c) | 167 | #define lua_assert(c) assert(c) |
166 | #else | 168 | #else |
167 | #define lua_assert(x) ((void)0) | 169 | #define lua_assert(c) ((void)0) |
170 | #endif | ||
171 | |||
168 | #endif | 172 | #endif |
169 | 173 | ||
170 | 174 | ||