diff options
Diffstat (limited to 'lstate.h')
-rw-r--r-- | lstate.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.h,v 1.98 2002/10/22 17:58:14 roberto Exp roberto $ | 2 | ** $Id: lstate.h,v 1.99 2002/10/25 20:05:28 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 | */ |
@@ -83,7 +83,7 @@ typedef struct CallInfo { | |||
83 | StkId *pb; /* points to `base' variable in `luaV_execute' */ | 83 | StkId *pb; /* points to `base' variable in `luaV_execute' */ |
84 | } l; | 84 | } l; |
85 | struct { /* for C functions */ | 85 | struct { /* for C functions */ |
86 | int yield_results; | 86 | int dummy; /* just to avoid an empty struct */ |
87 | } c; | 87 | } c; |
88 | } u; | 88 | } u; |
89 | } CallInfo; | 89 | } CallInfo; |
@@ -99,6 +99,7 @@ typedef struct CallInfo { | |||
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 4 |
101 | #define CI_SAVEDPC 8 /* 1 if `savedpc' is updated */ | 101 | #define CI_SAVEDPC 8 /* 1 if `savedpc' is updated */ |
102 | #define CI_YIELD 16 /* 1 if thread is suspended */ | ||
102 | 103 | ||
103 | 104 | ||
104 | #define ci_func(ci) (clvalue((ci)->base - 1)) | 105 | #define ci_func(ci) (clvalue((ci)->base - 1)) |