MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / unlinkNamespaces

Function unlinkNamespaces

Engine/source/console/console.cpp:1798–1813  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1796}
1797
1798bool unlinkNamespaces(const char *parent, const char *child)
1799{
1800 Namespace *pns = lookupNamespace(parent);
1801 Namespace *cns = lookupNamespace(child);
1802
1803 if(pns == cns)
1804 {
1805 Con::warnf("Con::unlinkNamespaces - trying to unlink '%s' from itself, aborting.", parent);
1806 return false;
1807 }
1808
1809 if(pns && cns)
1810 return cns->unlinkClass(pns);
1811
1812 return false;
1813}
1814
1815bool classLinkNamespaces(Namespace *parent, Namespace *child)
1816{

Callers 4

assignNameMethod · 0.85
onRemoveMethod · 0.85
setClassNamespaceMethod · 0.85

Calls 3

lookupNamespaceFunction · 0.85
unlinkClassMethod · 0.80
warnfFunction · 0.70

Tested by

no test coverage detected