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

Function __hxcpp_register_prim

src/hx/Lib.cpp:833–844  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

831// This can be used to find symbols in static libraries
832
833int __hxcpp_register_prim(const char *inName,void *inProc)
834{
835 if (sgRegisteredPrims==0)
836 sgRegisteredPrims = new RegistrationMap();
837 void * &proc = (*sgRegisteredPrims)[inName];
838 if (proc)
839 {
840 printf("Warning : duplicate symbol %s\n", inName);
841 }
842 proc = inProc;
843 return 0;
844}
845

Callers 1

hx_register_primFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected