MCPcopy Create free account
hub / github.com/LibreSprite/LibreSprite / eval

Method eval

src/app/script/app_scripting.cpp:185–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183 }
184
185 bool AppScripting::eval(const std::string& code) {
186 initEngine();
187 if (engine) {
188 return engine->eval(code);
189 }
190 inject<script::EngineDelegate>{}->onConsolePrint("No compatible scripting engine.");
191 return false;
192 }
193
194 bool AppScripting::evalFile(const std::string& fileName) {
195 m_fileName = fileName;

Callers 3

runMethod · 0.45
evalFileMethod · 0.45
onExecuteCommandMethod · 0.45

Calls 1

onConsolePrintMethod · 0.45

Tested by

no test coverage detected