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

Method __boot

src/Dynamic.cpp:615–635  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

613}
614
615void Dynamic::__boot()
616{
617 Static(__VoidClass) = hx::_hx_RegisterClass(HX_CSTRING("Void"),NoCast,sNone,sNone,0,0,0, 0, 0
618 #ifdef HXCPP_VISIT_ALLOCS
619 ,0
620 #endif
621 );
622 Static(__BoolClass) = hx::_hx_RegisterClass(HX_CSTRING("Bool"),TCanCast<BoolData>,sNone,sNone, 0,0, 0);
623 Static(__IntClass) = hx::_hx_RegisterClass(HX_CSTRING("Int"),IsInt,sNone,sNone,0,0, 0 );
624 Static(__FloatClass) = hx::_hx_RegisterClass(HX_CSTRING("Float"),IsFloat,sNone,sNone, 0,0,&__IntClass );
625 Static(__Int64Class) = hx::_hx_RegisterClass(HX_CSTRING("cpp::Int64"),IsInt64,sNone,sNone, 0,0,&__IntClass );
626 __Int64Class->mConstructEmpty = &createEmptyInt64;
627 __Int64Class->mConstructArgs = &createInt64;
628
629 Static(__PointerClass) = hx::_hx_RegisterClass(HX_CSTRING("cpp::Pointer"),IsPointer,sNone,sNone, 0,0,&__PointerClass );
630 DynTrue = Dynamic( new (hx::NewObjConst) hx::BoolData(true) );
631 DynFalse = Dynamic( new (hx::NewObjConst) hx::BoolData(false) );
632#ifdef HXCPP_OBJC
633 Static(__ObjcClass) = hx::_hx_RegisterClass(HX_CSTRING("objc::BoxedType"),IsPointer,sNone,sNone, 0,0,&__ObjcClass );
634#endif
635}

Callers

nothing calls this directly

Calls 2

_hx_RegisterClassFunction · 0.85
DynamicClass · 0.50

Tested by

no test coverage detected