diff options
Diffstat (limited to 'ltests.h')
-rw-r--r-- | ltests.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltests.h,v 1.6 2001/03/02 17:27:50 roberto Exp roberto $ | 2 | ** $Id: ltests.h,v 1.7 2001/06/28 19:58:57 roberto Exp $ |
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 | */ |
@@ -43,8 +43,8 @@ void *debug_realloc (void *block, size_t oldsize, size_t size); | |||
43 | /* test for lock/unlock */ | 43 | /* test for lock/unlock */ |
44 | #define LUA_USERSTATE int *lock; | 44 | #define LUA_USERSTATE int *lock; |
45 | extern int islocked; | 45 | extern int islocked; |
46 | #define lua_lock(L) lua_assert((**((int **)L))++ == 0) | 46 | #define lua_lock(L) lua_assert((**cast(int **, L))++ == 0) |
47 | #define lua_unlock(L) lua_assert(--(**((int **)L)) == 0) | 47 | #define lua_unlock(L) lua_assert(--(**cast(int **, L)) == 0) |
48 | 48 | ||
49 | 49 | ||
50 | extern lua_State *lua_state; | 50 | extern lua_State *lua_state; |