summaryrefslogtreecommitdiff
path: root/src/lapi.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-04-28 14:42:41 +0200
committerBenoit Giannangeli <giann008@gmail.com>2017-04-28 14:42:41 +0200
commit354d659f577fc27969784400c8c1e6090756da7b (patch)
tree4aa17f23121794bc8b855e2ed0bf85951281b37e /src/lapi.js
parentcebad06a3429e28cb5e0c247c707bb5eb51943d8 (diff)
downloadfengari-354d659f577fc27969784400c8c1e6090756da7b.tar.gz
fengari-354d659f577fc27969784400c8c1e6090756da7b.tar.bz2
fengari-354d659f577fc27969784400c8c1e6090756da7b.zip
os.exit
Diffstat (limited to 'src/lapi.js')
-rw-r--r--src/lapi.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lapi.js b/src/lapi.js
index a758a66..e813313 100644
--- a/src/lapi.js
+++ b/src/lapi.js
@@ -757,6 +757,10 @@ const lua_isnil = function(L, n) {
return lua_type(L, n) === CT.LUA_TNIL;
};
+const lua_isboolean = function(L, n) {
+ return lua_type(L, n) === CT.LUA_TBOOLEAN;
+};
+
const lua_isnone = function(L, n) {
return lua_type(L, n) === CT.LUA_TNONE;
};
@@ -1037,6 +1041,7 @@ module.exports.lua_gettop = lua_gettop;
module.exports.lua_getupvalue = lua_getupvalue;
module.exports.lua_getuservalue = lua_getuservalue;
module.exports.lua_insert = lua_insert;
+module.exports.lua_isboolean = lua_isboolean;
module.exports.lua_iscfunction = lua_iscfunction;
module.exports.lua_isfunction = lua_isfunction;
module.exports.lua_isinteger = lua_isinteger;