From f083812c020186d0d919833100c1a0b6eda8c2c0 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 9 Jan 2002 20:02:47 -0200 Subject: first implementation of coroutines --- lstate.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lstate.h') diff --git a/lstate.h b/lstate.h index db7c7b86..b7d69af6 100644 --- a/lstate.h +++ b/lstate.h @@ -39,6 +39,10 @@ #define LUA_USERSTATE #endif +#ifndef lua_userstateopen +#define lua_userstateopen(l) +#endif + struct lua_longjmp; /* defined in ldo.c */ @@ -77,8 +81,8 @@ typedef struct CallInfo { const Instruction *savedpc; lua_Hook linehook; StkId top; /* top for this function (when it's a Lua function) */ - /* extra information for debugging */ const Instruction **pc; + /* extra information for line tracing */ int lastpc; /* last pc traced */ int line; /* current line */ int refi; /* current index in `lineinfo' */ -- cgit v1.2.3-55-g6feb