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

Method registerDebugger

src/hx/cppia/CppiaModule.cpp:102–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100void addScriptableFile(String inName);
101
102void CppiaModule::registerDebugger()
103{
104 #ifdef HXCPP_DEBUGGER
105 for(int i=0;i<classes.size();i++)
106 {
107 String scriptable(classes[i]->name.c_str());
108 addScriptableClass( scriptable.makePermanent().utf8_str() );
109 }
110
111 for(hx::UnorderedSet<int>::const_iterator i = allFileIds.begin(); i!=allFileIds.end(); ++i)
112 addScriptableFile(strings[*i]);
113
114 #if (HXCPP_API_LEVEL >= 500)
115 if (hx::g_onScriptLoadedFunction != null{}) {
116 hx::g_onScriptLoadedFunction();
117 }
118 #endif
119
120 #endif
121}
122
123CppiaClassInfo *CppiaModule::findClass( ::String inName)
124{

Callers 1

LoadCppiaFunction · 0.80

Calls 5

addScriptableClassFunction · 0.85
addScriptableFileFunction · 0.85
c_strMethod · 0.80
utf8_strMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected