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

Function getScriptId

src/hx/cppia/CppiaClasses.cpp:1787–1796  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1785
1786
1787int getScriptId(hx::Class inClass)
1788{
1789 hx::Class_obj *ptr = inClass.mPtr;
1790 if (!ptr)
1791 return 0;
1792 CppiaClass *cls = dynamic_cast<CppiaClass *>(ptr);
1793 if (!cls)
1794 return 0;
1795 return cls->info->cppia.scriptId;
1796}
1797
1798
1799

Callers 2

loadMethod · 0.85
linkMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected