MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / isBool

Method isBool

include/cpp/Variant.h:435–443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

433 }
434
435 bool Variant::isBool() const
436 {
437 if (type==typeBool)
438 return true;
439 if (type!=typeObject || valObject==0)
440 return false;
441
442 return valObject->__GetType() == vtBool;
443 }
444
445
446 String Variant::getString() const { return String(valStringPtr, valStringLen); }

Callers

nothing calls this directly

Calls 1

__GetTypeMethod · 0.45

Tested by

no test coverage detected