projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3421c6e
)
Add luaRef is Boolean
author
Robin Gareus
<robin@gareus.org>
Fri, 18 Aug 2017 18:41:53 +0000
(20:41 +0200)
committer
Robin Gareus
<robin@gareus.org>
Fri, 18 Aug 2017 18:42:55 +0000
(20:42 +0200)
libs/lua/LuaBridge/detail/LuaRef.h
patch
|
blob
|
history
diff --git
a/libs/lua/LuaBridge/detail/LuaRef.h
b/libs/lua/LuaBridge/detail/LuaRef.h
index 46c756445e78523eacdb546fe8c2337a0f8b5458..e85f670b2133457151bb329b1511cf157ccdab92 100644
(file)
--- 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; }