summaryrefslogtreecommitdiff
path: root/ltests.h
diff options
context:
space:
mode:
Diffstat (limited to 'ltests.h')
-rw-r--r--ltests.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/ltests.h b/ltests.h
index 3fc03cc1..bf460c35 100644
--- a/ltests.h
+++ b/ltests.h
@@ -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;
45extern int islocked; 45extern 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
50extern lua_State *lua_state; 50extern lua_State *lua_state;