Add luaRef is Boolean
[ardour.git] / libs / lua / LuaBridge / detail / LuaRef.h
index 46c756445e78523eacdb546fe8c2337a0f8b5458..e85f670b2133457151bb329b1511cf157ccdab92 100644 (file)
@@ -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; }