diff options
Diffstat (limited to 'ltests.h')
| -rw-r--r-- | ltests.h | 8 |
1 files changed, 6 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ltests.h,v 2.2 2004/02/16 19:09:52 roberto Exp roberto $ | 2 | ** $Id: ltests.h,v 2.3 2004/03/15 21:04:54 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 | */ |
| @@ -19,6 +19,8 @@ | |||
| 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 check_exp(c,e) (lua_assert(c), (e)) |
| 22 | #undef api_check | ||
| 23 | #define api_check(L, o) lua_assert(o) | ||
| 22 | 24 | ||
| 23 | 25 | ||
| 24 | /* to avoid warnings, and to make sure value is really unused */ | 26 | /* to avoid warnings, and to make sure value is really unused */ |
| @@ -63,7 +65,9 @@ extern int islocked; | |||
| 63 | 65 | ||
| 64 | int luaB_opentests (lua_State *L); | 66 | int luaB_opentests (lua_State *L); |
| 65 | 67 | ||
| 66 | #define LUA_EXTRALIBS { "tests", luaB_opentests }, | 68 | #undef LUA_EXTRALIBS |
| 69 | #define LUA_EXTRALIBS { "tests", luaB_opentests }, | ||
| 70 | |||
| 67 | 71 | ||
| 68 | 72 | ||
| 69 | /* real main will be defined at `ltests.c' */ | 73 | /* real main will be defined at `ltests.c' */ |
