diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-02-12 13:42:44 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-02-12 13:42:44 -0200 |
commit | 255052b6c6a1b109c93b104c03de8968b56dcd5a (patch) | |
tree | c5142cc2af37efa4d3f8352995a31055381450c2 /ltests.h | |
parent | 1bdc156b52f51c7c353a5cd50447c827de853005 (diff) | |
download | lua-255052b6c6a1b109c93b104c03de8968b56dcd5a.tar.gz lua-255052b6c6a1b109c93b104c03de8968b56dcd5a.tar.bz2 lua-255052b6c6a1b109c93b104c03de8968b56dcd5a.zip |
better API checks
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.3 2001/02/06 16:01:29 roberto Exp roberto $ | 2 | ** $Id: ltests.h,v 1.4 2001/02/06 18:18:58 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 | */ |
@@ -16,6 +16,7 @@ | |||
16 | #undef NDEBUG | 16 | #undef NDEBUG |
17 | #include <assert.h> | 17 | #include <assert.h> |
18 | #define lua_assert(c) assert(c) | 18 | #define lua_assert(c) assert(c) |
19 | #define api_check(L, o) lua_assert(o) | ||
19 | 20 | ||
20 | 21 | ||
21 | /* to avoid warnings, and to make sure value is really unused */ | 22 | /* to avoid warnings, and to make sure value is really unused */ |