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

Method isNumeric

include/cpp/Variant.h:424–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

422
423
424 bool Variant::isNumeric() const
425 {
426 if (type==typeInt || type==typeDouble || type==typeInt64)
427 return true;
428 if (type!=typeObject || valObject==0)
429 return false;
430
431 int t = valObject->__GetType();
432 return t==vtInt || t==vtFloat;
433 }
434
435 bool Variant::isBool() const
436 {

Callers

nothing calls this directly

Calls 1

__GetTypeMethod · 0.45

Tested by

no test coverage detected