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

Function addScriptableFile

src/hx/cppia/CppiaModule.cpp:534–545  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

532
533
534void addScriptableFile(String inName)
535{
536 #ifdef HXCPP_DEBUGGER
537 if (!gAllFiles.mPtr)
538 {
539 gAllFiles = Array_obj<Dynamic>::__new();
540 GCAddRoot( (hx::Object **)&gAllFiles.mPtr );
541 }
542 if (gAllFiles->indexOf(inName)<0)
543 gAllFiles->push(inName);
544 #endif
545}
546
547
548

Callers 1

registerDebuggerMethod · 0.85

Calls 3

__newFunction · 0.85
indexOfMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected