diff options
author | Robin Gareus <robin@gareus.org> | 2017-08-18 20:41:53 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-08-18 20:42:55 +0200 |
commit | e951e6878097b2d4073cf815e8d9693cafaa5884 (patch) | |
tree | 3e38f54e29b0c401ed1bdf6484cc4bc0a15430a9 /libs/lua | |
parent | 3421c6e8141e0c31ff59c8211aa57d7566a51db8 (diff) |
Add luaRef is Boolean
Diffstat (limited to 'libs/lua')
-rw-r--r-- | libs/lua/LuaBridge/detail/LuaRef.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/lua/LuaBridge/detail/LuaRef.h b/libs/lua/LuaBridge/detail/LuaRef.h index 46c756445e..e85f670b21 100644 --- a/libs/lua/LuaBridge/detail/LuaRef.h +++ b/libs/lua/LuaBridge/detail/LuaRef.h @@ -850,6 +850,7 @@ public: //inline bool isNone () const { return m_ref == LUA_NOREF; } inline bool isNil () const { return type () == LUA_TNIL; } + inline bool isBoolean () const { return type () == LUA_TBOOLEAN; } inline bool isNumber () const { return type () == LUA_TNUMBER; } inline bool isString () const { return type () == LUA_TSTRING; } inline bool isTable () const { return type () == LUA_TTABLE; } |