diff options
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' */ |