aboutsummaryrefslogtreecommitdiff
path: root/src/ldebug.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-04-14 11:48:23 +0200
committerBenoit Giannangeli <giann008@gmail.com>2017-04-14 11:55:09 +0200
commit3d667b50989e31d18af0c235e28b68055adf62ff (patch)
tree4dbc97a2f0606334e5a8848767e295c3282a2662 /src/ldebug.js
parentd8b080f555dbb9e90dd6d4908b6263910f80528f (diff)
downloadfengari-3d667b50989e31d18af0c235e28b68055adf62ff.tar.gz
fengari-3d667b50989e31d18af0c235e28b68055adf62ff.tar.bz2
fengari-3d667b50989e31d18af0c235e28b68055adf62ff.zip
debug.gethook
Diffstat (limited to 'src/ldebug.js')
-rw-r--r--src/ldebug.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/ldebug.js b/src/ldebug.js
index a73b7f7..0a0e22c 100644
--- a/src/ldebug.js
+++ b/src/ldebug.js
@@ -51,6 +51,20 @@ const lua_sethook = function(L, func, mask, count) {
L.hookmask = mask;
};
+const lua_gethook = function(L) {
+ return L.hook;
+};
+
+
+const lua_gethookmask = function(L) {
+ return L.hookmask;
+};
+
+
+const lua_gethookcount = function(L) {
+ return L.basehookcount;
+};
+
const lua_getstack = function(L, level, ar) {
let ci;
let status;
@@ -633,6 +647,9 @@ module.exports.luaG_runerror = luaG_runerror;
module.exports.luaG_tointerror = luaG_tointerror;
module.exports.luaG_traceexec = luaG_traceexec;
module.exports.luaG_typeerror = luaG_typeerror;
+module.exports.lua_gethook = lua_gethook;
+module.exports.lua_gethookcount = lua_gethookcount;
+module.exports.lua_gethookmask = lua_gethookmask;
module.exports.lua_getinfo = lua_getinfo;
module.exports.lua_getlocal = lua_getlocal;
module.exports.lua_getstack = lua_getstack;