diff options
| author | pixel <pixel> | 2004-07-23 13:08:22 +0000 | 
|---|---|---|
| committer | pixel <pixel> | 2004-07-23 13:08:22 +0000 | 
| commit | 61a150c500fd64d1eeae74f9abb6829721261d39 (patch) | |
| tree | 53bbd30dbeacde28d16a61ff79a1efed77d195f5 /lib/lua/includes | |
| parent | 1445e590be067844a66578f2df97ab532c1f91ac (diff) | |
Adding some LUA features
Diffstat (limited to 'lib/lua/includes')
| -rw-r--r-- | lib/lua/includes/lstate.h | 11 | 
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/lua/includes/lstate.h b/lib/lua/includes/lstate.h index 6cebdfb..191cb45 100644 --- a/lib/lua/includes/lstate.h +++ b/lib/lua/includes/lstate.h @@ -1,5 +1,5 @@  /* -** $Id: lstate.h,v 1.2 2003-12-11 16:53:29 pixel Exp $ +** $Id: lstate.h,v 1.3 2004-07-23 13:08:23 pixel Exp $  ** Global State  ** See Copyright Notice in lua.h  */ @@ -24,12 +24,16 @@  ** or when reading immutable fields from global objects  ** (such as string values and udata values).   */ + +void do_lua_lock(lua_State *); +void do_lua_unlock(lua_State *); +  #ifndef lua_lock -#define lua_lock(L)	((void) 0) +#define lua_lock(L)	do_lua_lock(L)  #endif  #ifndef lua_unlock -#define lua_unlock(L)	((void) 0) +#define lua_unlock(L)	do_lua_unlock(L)  #endif @@ -100,6 +104,7 @@ typedef struct CallInfo {  #define CI_CALLING	(1<<2)  #define CI_SAVEDPC	(1<<3)  /* 1 if `savedpc' is updated */  #define CI_YIELD	(1<<4)  /* 1 if thread is suspended */ +#define CI_BREAK	(1<<5)  /* 1 if user break */  #define ci_func(ci)	(clvalue((ci)->base - 1))  | 
