diff options
author | Benoit Giannangeli <benoit.giannangeli@boursorama.fr> | 2017-02-08 07:38:03 +0100 |
---|---|---|
committer | Benoit Giannangeli <benoit.giannangeli@boursorama.fr> | 2017-02-08 08:23:00 +0100 |
commit | a2031547aafbb07f6284cd10704435db23d9db60 (patch) | |
tree | 75677f2714f10cb6e7e298542af9d650e235c6d1 /src/lstate.js | |
parent | 364326b97450564d41d37cdc7b2c4fbb8049c62f (diff) | |
download | fengari-a2031547aafbb07f6284cd10704435db23d9db60.tar.gz fengari-a2031547aafbb07f6284cd10704435db23d9db60.tar.bz2 fengari-a2031547aafbb07f6284cd10704435db23d9db60.zip |
callstatus, OP_LE, OP_JMP, tests use L.top
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 |