aboutsummaryrefslogtreecommitdiff
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 2d7a4822..6cbb9810 100644
--- a/ltests.h
+++ b/ltests.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltests.h,v 1.4 2001/02/06 18:18:58 roberto Exp roberto $ 2** $Id: ltests.h,v 1.5 2001/02/12 15:42:44 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*/
@@ -41,8 +41,8 @@ void *debug_realloc (void *block, size_t oldsize, size_t size);
41/* test for lock/unlock */ 41/* test for lock/unlock */
42#define LUA_USERSTATE int *lock; 42#define LUA_USERSTATE int *lock;
43extern int islocked; 43extern int islocked;
44#define LUA_LOCK(L) lua_assert((**((int **)L))++ == 0) 44#define lua_lock(L) lua_assert((**((int **)L))++ == 0)
45#define LUA_UNLOCK(L) lua_assert(--(**((int **)L)) == 0) 45#define lua_unlock(L) lua_assert(--(**((int **)L)) == 0)
46 46
47 47
48extern lua_State *lua_state; 48extern lua_State *lua_state;