forked from bblanchon/ArduinoJson
Added conversion from JsonArray/JsonObject to bool
This commit is contained in:
1 parent
4ad05dbaef
commit
7d1d0c4e67
5 files changed
+65
-8
No files matched your search
@@ -36,6 +36,10 @@ class ArrayRefBase {
|
||||
return _data == 0;
|
||||
}
|
||||
|
||||
FORCE_INLINE operator bool() const {
|
||||
return _data != 0;
|
||||
}
|
||||
|
||||
FORCE_INLINE size_t memoryUsage() const {
|
||||
return _data ? _data->memoryUsage() : 0;
|
||||
}
|
||||
|
||||
@@ -31,6 +31,10 @@ class ObjectRefBase {
|
||||
return _data == 0;
|
||||
}
|
||||
|
||||
FORCE_INLINE operator bool() const {
|
||||
return _data != 0;
|
||||
}
|
||||
|
||||
FORCE_INLINE size_t memoryUsage() const {
|
||||
return _data ? _data->memoryUsage() : 0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user