diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-01-09 20:02:47 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-01-09 20:02:47 -0200 |
commit | f083812c020186d0d919833100c1a0b6eda8c2c0 (patch) | |
tree | 29c2e1d25f05af62277aab03e8e070aaa1a0d664 /lstate.h | |
parent | 3533382a1ed7ba21f0233057c886be2dd8a71d92 (diff) | |
download | lua-f083812c020186d0d919833100c1a0b6eda8c2c0.tar.gz lua-f083812c020186d0d919833100c1a0b6eda8c2c0.tar.bz2 lua-f083812c020186d0d919833100c1a0b6eda8c2c0.zip |
first implementation of coroutines
Diffstat (limited to 'lstate.h')
-rw-r--r-- | lstate.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -39,6 +39,10 @@ | |||
39 | #define LUA_USERSTATE | 39 | #define LUA_USERSTATE |
40 | #endif | 40 | #endif |
41 | 41 | ||
42 | #ifndef lua_userstateopen | ||
43 | #define lua_userstateopen(l) | ||
44 | #endif | ||
45 | |||
42 | 46 | ||
43 | 47 | ||
44 | struct lua_longjmp; /* defined in ldo.c */ | 48 | struct lua_longjmp; /* defined in ldo.c */ |
@@ -77,8 +81,8 @@ typedef struct CallInfo { | |||
77 | const Instruction *savedpc; | 81 | const Instruction *savedpc; |
78 | lua_Hook linehook; | 82 | lua_Hook linehook; |
79 | StkId top; /* top for this function (when it's a Lua function) */ | 83 | StkId top; /* top for this function (when it's a Lua function) */ |
80 | /* extra information for debugging */ | ||
81 | const Instruction **pc; | 84 | const Instruction **pc; |
85 | /* extra information for line tracing */ | ||
82 | int lastpc; /* last pc traced */ | 86 | int lastpc; /* last pc traced */ |
83 | int line; /* current line */ | 87 | int line; /* current line */ |
84 | int refi; /* current index in `lineinfo' */ | 88 | int refi; /* current index in `lineinfo' */ |