MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / ProduceScript

Method ProduceScript

src/Base/Factory.cpp:93–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93const char* ScriptFactorySingleton::ProduceScript(const char* sScriptName) const
94{
95 const char* script = static_cast<const char*>(Produce(sScriptName));
96
97 if (!script) {
98#ifdef FC_DEBUG
99 Console().warning("\"%s\" is not registered\n", sScriptName);
100#endif
101 return ""; // no data
102 }
103
104 return script;
105}

Callers 4

initApplicationMethod · 0.80
runApplicationMethod · 0.80
delayedStartupMethod · 0.80
runInitGuiScriptMethod · 0.80

Calls 2

ProduceFunction · 0.70
warningMethod · 0.45

Tested by

no test coverage detected