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

Method LookupClassName

src/hx/Debugger.cpp:907–925  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

905 }
906
907 static const char *LookupClassName(String className)
908 {
909 if (__all_classes)
910 for (const char **ptr = __all_classes; *ptr; ptr++)
911 {
912 if (!strcmp(*ptr, className.raw_ptr()))
913 return *ptr;
914 }
915
916 #ifdef HXCPP_SCRIPTABLE
917 Array< ::String> ret = Array_obj< ::String>::__new();
918 __hxcpp_dbg_getScriptableClasses(ret);
919 for(int i=0;i<ret->length;i++)
920 if (ret[i]==className)
921 return ret[i].makePermanent().raw_ptr();
922 #endif
923
924 return 0;
925 }
926
927
928private:

Callers

nothing calls this directly

Calls 2

__newFunction · 0.85

Tested by

no test coverage detected