diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-06-13 10:45:31 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-06-13 10:45:31 -0300 |
commit | 8fd0f6a82b63f4a2f77578fb70c9fe46047f295b (patch) | |
tree | 0ef4abdeaf45e1906c3c61c809b79a34872f68b5 /ltests.h | |
parent | eb3de8768a6b614597f7e5f018fc31a9f52441df (diff) | |
download | lua-8fd0f6a82b63f4a2f77578fb70c9fe46047f295b.tar.gz lua-8fd0f6a82b63f4a2f77578fb70c9fe46047f295b.tar.bz2 lua-8fd0f6a82b63f4a2f77578fb70c9fe46047f295b.zip |
new macro to check conditions on expression macros
Diffstat (limited to 'ltests.h')
-rw-r--r-- | ltests.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltests.h,v 1.12 2002/03/08 19:17:59 roberto Exp roberto $ | 2 | ** $Id: ltests.h,v 1.13 2002/06/11 16:26:12 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 | */ |
@@ -18,6 +18,7 @@ | |||
18 | #undef NDEBUG | 18 | #undef NDEBUG |
19 | #include <assert.h> | 19 | #include <assert.h> |
20 | #define lua_assert(c) assert(c) | 20 | #define lua_assert(c) assert(c) |
21 | #define check_exp(c,e) (lua_assert(c), (e)) | ||
21 | #define api_check(L, o) lua_assert(o) | 22 | #define api_check(L, o) lua_assert(o) |
22 | 23 | ||
23 | 24 | ||