summaryrefslogtreecommitdiff
path: root/lib/lua/includes
diff options
context:
space:
mode:
Diffstat (limited to 'lib/lua/includes')
-rw-r--r--lib/lua/includes/lstate.h11
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))