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

Class AutoValue

include/hx/CFFIPrime.h:459–471  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

457#endif
458
459struct AutoValue
460{
461 value mValue;
462
463 inline operator int() { return val_int(mValue); }
464 inline operator long() { return (long)val_number(mValue); }
465 inline operator value() { return mValue; }
466 inline operator double() { return val_number(mValue); }
467 inline operator float() { return val_number(mValue); }
468 inline operator bool() { return val_bool(mValue); }
469 inline operator const char *() { return val_string(mValue); }
470 inline operator HxString() { return val_is_null(mValue) ? HxString(0,0) : HxString(val_string(mValue), val_strlen(mValue), false); }
471};
472
473
474

Callers

nothing calls this directly

Calls 7

val_stringFunction · 0.85
val_is_nullFunction · 0.85
HxStringClass · 0.85
val_strlenFunction · 0.85
val_intFunction · 0.70
val_numberFunction · 0.70
val_boolFunction · 0.70

Tested by

no test coverage detected