diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2004-09-10 14:30:46 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2004-09-10 14:30:46 -0300 |
commit | 226c57fec0cc2a1b9457ec4204f13c5b7a108cc7 (patch) | |
tree | 520797ca5f2070ff2c77a4e5756b63bb419dbd60 /ltests.h | |
parent | 0de2065f4e7cbbbe301b07835b9dd0b1bd1a4bbb (diff) | |
download | lua-226c57fec0cc2a1b9457ec4204f13c5b7a108cc7.tar.gz lua-226c57fec0cc2a1b9457ec4204f13c5b7a108cc7.tar.bz2 lua-226c57fec0cc2a1b9457ec4204f13c5b7a108cc7.zip |
simpler configuration to turn on all asserts
Diffstat (limited to 'ltests.h')
-rw-r--r-- | ltests.h | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltests.h,v 2.8 2004/07/09 14:29:29 roberto Exp roberto $ | 2 | ** $Id: ltests.h,v 2.9 2004/07/16 13:17:00 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 | */ |
@@ -17,9 +17,6 @@ | |||
17 | #include <assert.h> | 17 | #include <assert.h> |
18 | #undef lua_assert | 18 | #undef lua_assert |
19 | #define lua_assert(c) assert(c) | 19 | #define lua_assert(c) assert(c) |
20 | #define check_exp(c,e) (lua_assert(c), (e)) | ||
21 | #undef api_check | ||
22 | #define api_check(L, o) lua_assert(o) | ||
23 | 20 | ||
24 | 21 | ||
25 | /* to avoid warnings, and to make sure value is really unused */ | 22 | /* to avoid warnings, and to make sure value is really unused */ |