From 426d3e43bdec4b1ab2b0aed1844396c27f64872f Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 2 Feb 2001 13:13:05 -0200 Subject: lock/unlock may use L + better structure for internal debug stuff --- lstate.h | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'lstate.h') diff --git a/lstate.h b/lstate.h index e4f52cec..ccac761c 100644 --- a/lstate.h +++ b/lstate.h @@ -1,5 +1,5 @@ /* -** $Id: lstate.h,v 1.48 2001/01/26 11:45:51 roberto Exp roberto $ +** $Id: lstate.h,v 1.49 2001/02/01 17:40:48 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -12,24 +12,16 @@ #include "luadebug.h" - -#ifdef LUA_DEBUG -extern int islocked; -#define LUA_LOCK lua_assert(islocked++ == 0) -#define LUA_UNLOCK lua_assert(--islocked == 0) -#endif - - /* ** macros that control all entries and exits from Lua core machine ** (mainly for thread syncronization) */ #ifndef LUA_LOCK -#define LUA_LOCK +#define LUA_LOCK(L) ((void) 0) #endif #ifndef LUA_UNLOCK -#define LUA_UNLOCK +#define LUA_UNLOCK(L) ((void) 0) #endif /* -- cgit v1.2.3-55-g6feb