aboutsummaryrefslogtreecommitdiff
path: root/lstate.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-11-18 13:23:43 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-11-18 13:23:43 -0200
commitc4ae00a3d107a27d80bd157a135ef115104f98f0 (patch)
tree604d3fea257fca821e1d8175d0eaaf1befd436b2 /lstate.h
parentf4d3bc52f486bb1f0d32c6240faffb0e63bbb8fe (diff)
downloadlua-c4ae00a3d107a27d80bd157a135ef115104f98f0.tar.gz
lua-c4ae00a3d107a27d80bd157a135ef115104f98f0.tar.bz2
lua-c4ae00a3d107a27d80bd157a135ef115104f98f0.zip
details
Diffstat (limited to 'lstate.h')
-rw-r--r--lstate.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/lstate.h b/lstate.h
index 6d1deb18..828c14b8 100644
--- a/lstate.h
+++ b/lstate.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.h,v 1.101 2002/11/13 11:31:39 roberto Exp roberto $ 2** $Id: lstate.h,v 1.102 2002/11/18 11:01:55 roberto Exp roberto $
3** Global State 3** Global State
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -92,14 +92,14 @@ typedef struct CallInfo {
92/* 92/*
93** bit fields for `CallInfo.state' 93** bit fields for `CallInfo.state'
94*/ 94*/
95#define CI_C 1 /* 1 if function is a C function */ 95#define CI_C (1<<0) /* 1 if function is a C function */
96/* 1 if (Lua) function has an active `luaV_execute' running it */ 96/* 1 if (Lua) function has an active `luaV_execute' running it */
97#define CI_HASFRAME 2 97#define CI_HASFRAME (1<<1)
98/* 1 if Lua function is calling another Lua function (and therefore its 98/* 1 if Lua function is calling another Lua function (and therefore its
99 `pc' is being used by the other, and therefore CI_SAVEDPC is 1 too) */ 99 `pc' is being used by the other, and therefore CI_SAVEDPC is 1 too) */
100#define CI_CALLING 4 100#define CI_CALLING (1<<2)
101#define CI_SAVEDPC 8 /* 1 if `savedpc' is updated */ 101#define CI_SAVEDPC (1<<3) /* 1 if `savedpc' is updated */
102#define CI_YIELD 16 /* 1 if thread is suspended */ 102#define CI_YIELD (1<<4) /* 1 if thread is suspended */
103 103
104 104
105#define ci_func(ci) (clvalue((ci)->base - 1)) 105#define ci_func(ci) (clvalue((ci)->base - 1))