diff options
Diffstat (limited to 'src/lstate.js')
-rw-r--r-- | src/lstate.js | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/lstate.js b/src/lstate.js index b919f0e..37f2d6b 100644 --- a/src/lstate.js +++ b/src/lstate.js @@ -19,6 +19,7 @@ class CallInfo { } }; this.nresults = 0; + this.callstatus = 0; } } @@ -40,6 +41,15 @@ class lua_State { } module.exports = { - lua_State: lua_State, - CallInfo: CallInfo + lua_State: lua_State, + CallInfo: CallInfo, + CIST_OAH: (1<<0), /* original value of 'allowhook' */ + CIST_LUA: (1<<1), /* call is running a Lua function */ + CIST_HOOKED: (1<<2), /* call is running a debug hook */ + CIST_FRESH: (1<<3), /* call is running on a fresh invocation of luaV_execute */ + CIST_YPCALL: (1<<4), /* call is a yieldable protected call */ + CIST_TAIL: (1<<5), /* call was tail called */ + CIST_HOOKYIELD: (1<<6), /* last hook called yielded */ + CIST_LEQ: (1<<7), /* using __lt for __le */ + CIST_FIN: (1<<8) /* call is running a finalizer */ };
\ No newline at end of file |