From c4ae00a3d107a27d80bd157a135ef115104f98f0 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 18 Nov 2002 13:23:43 -0200 Subject: details --- lstate.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lstate.h') diff --git a/lstate.h b/lstate.h index 6d1deb18..828c14b8 100644 --- a/lstate.h +++ b/lstate.h @@ -1,5 +1,5 @@ /* -** $Id: lstate.h,v 1.101 2002/11/13 11:31:39 roberto Exp roberto $ +** $Id: lstate.h,v 1.102 2002/11/18 11:01:55 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -92,14 +92,14 @@ typedef struct CallInfo { /* ** bit fields for `CallInfo.state' */ -#define CI_C 1 /* 1 if function is a C function */ +#define CI_C (1<<0) /* 1 if function is a C function */ /* 1 if (Lua) function has an active `luaV_execute' running it */ -#define CI_HASFRAME 2 +#define CI_HASFRAME (1<<1) /* 1 if Lua function is calling another Lua function (and therefore its `pc' is being used by the other, and therefore CI_SAVEDPC is 1 too) */ -#define CI_CALLING 4 -#define CI_SAVEDPC 8 /* 1 if `savedpc' is updated */ -#define CI_YIELD 16 /* 1 if thread is suspended */ +#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_func(ci) (clvalue((ci)->base - 1)) -- cgit v1.2.3-55-g6feb