Skip to content

Commit

Permalink
isboolean
Browse files Browse the repository at this point in the history
  • Loading branch information
nebulazorua committed May 25, 2021
1 parent 9146e6d commit 6bb1078
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions llua/Lua.hx
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,14 @@ extern class Lua {
return _isuserdata(l, idx) != 0;
}

@:noCompletion
@:native('lua_isboolean')
static function _isboolean(l:State, idx:Int) : Int;

static inline function isboolean(l:State, idx:Int) : Bool {
return _isboolean(l, idx) != 0;
}

@:native('lua_type')
static function type(l:State, idx:Int) : Int;

Expand Down Expand Up @@ -368,9 +376,6 @@ extern class Lua {
@:native('lua_isnil')
static function isnil(l:State, idx:Int) : Int;

@:native('lua_isboolean')
static function isboolean(l:State, idx:Int) : Int;

@:native('lua_isthread')
static function isthread(l:State, idx:Int) : Int;

Expand Down

0 comments on commit 6bb1078

Please sign in to comment.