better syntax for type casts

This commit is contained in:
Roberto Ierusalimschy
2001-08-31 16:46:07 -03:00
parent 7651a5c6b2
commit e1d072571e
26 changed files with 148 additions and 141 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: ltests.h,v 1.6 2001/03/02 17:27:50 roberto Exp roberto $
** $Id: ltests.h,v 1.7 2001/06/28 19:58:57 roberto Exp $
** Internal Header for Debugging of the Lua Implementation
** See Copyright Notice in lua.h
*/
@@ -43,8 +43,8 @@ void *debug_realloc (void *block, size_t oldsize, size_t size);
/* test for lock/unlock */
#define LUA_USERSTATE int *lock;
extern int islocked;
#define lua_lock(L) lua_assert((**((int **)L))++ == 0)
#define lua_unlock(L) lua_assert(--(**((int **)L)) == 0)
#define lua_lock(L) lua_assert((**cast(int **, L))++ == 0)
#define lua_unlock(L) lua_assert(--(**cast(int **, L)) == 0)
extern lua_State *lua_state;