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

Method linkClass

src/hx/cppia/CppiaClasses.cpp:1631–1644  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1629 }
1630
1631 void linkClass(CppiaModule &inModule,String inName)
1632 {
1633 mName = inName;
1634 mSuper = info->getSuperClass();
1635 DBGLOG("LINK %p ########################### %s -> %p\n", this, mName.out_str(), mSuper );
1636 //mStatics = Array_obj<String>::__new(0,0);
1637
1638 bool overwrite = false;
1639 hx::Class old = hx::Class_obj::Resolve(inName);
1640 // Overwrite cppia classes
1641 if (old.mPtr && dynamic_cast<CppiaClass *>( old.mPtr ) )
1642 overwrite = true;
1643 registerScriptable(overwrite);
1644 }
1645
1646
1647 Dynamic ConstructEmpty() HXCPP_OVERRIDE

Callers 1

linkCppiaClassFunction · 0.80

Calls 1

getSuperClassMethod · 0.80

Tested by

no test coverage detected