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

Function _hx_RegisterClass

src/hx/Class.cpp:15–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13static ClassMap *sClassMap = 0;
14
15Class _hx_RegisterClass(const String &inClassName, CanCastFunc inCanCast,
16 String inStatics[], String inMembers[],
17 ConstructEmptyFunc inConstructEmpty, ConstructArgsFunc inConstructArgs,
18 Class *inSuperClass, ConstructEnumFunc inConstructEnum,
19 MarkFunc inMarkFunc
20 #ifdef HXCPP_VISIT_ALLOCS
21 ,VisitFunc inVisitFunc
22 #endif
23 #ifdef HXCPP_SCRIPTABLE
24 ,const hx::StorageInfo *inStorageInfo
25 ,const hx::StaticInfo *inStaticInfo
26 #endif
27 )
28{
29 if (sClassMap==0)
30 sClassMap = new ClassMap;
31
32 Class_obj *obj = new Class_obj(inClassName, inStatics, inMembers,
33 inConstructEmpty, inConstructArgs, inSuperClass,
34 inConstructEnum, inCanCast, inMarkFunc
35 #ifdef HXCPP_VISIT_ALLOCS
36 ,inVisitFunc
37 #endif
38 #ifdef HXCPP_SCRIPTABLE
39 ,inStorageInfo
40 ,inStaticInfo
41 #endif
42 );
43 Class c(obj);
44 (*sClassMap)[inClassName] = c;
45 return c;
46}
47
48void _hx_RegisterClass(const String &inClassName, Class inClass)
49{

Callers 9

__bootMethod · 0.85
__bootMethod · 0.85
__bootMethod · 0.85
__bootMethod · 0.85
__bootMethod · 0.85
__bootMethod · 0.85
__bootMethod · 0.85
__bootMethod · 0.85
RegisterClassFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected