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

Method log

src/app/script/api/console_script.cpp:43–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41 }
42
43 void log() {
44 std::stringstream stream;
45 bool first = true;
46 for (auto& arg : script::Function::varArgs()) {
47 if (!first) {
48 stream << " ";
49 }
50 first = false;
51 stream << arg.str();
52 }
53 delegate->onConsolePrint(stream.str().c_str());
54 }
55};
56
57static script::ScriptObject::Regular<ConsoleScriptObject> reg("ConsoleScriptObject", {"global"});

Callers 8

addImportFunction · 0.80
mainFunction · 0.80
read_me_fetchFunction · 0.80
onEventMethod · 0.80
ai.jsFile · 0.80
AIFunction · 0.80
onupgradeneededFunction · 0.80
cfginitFunction · 0.80

Calls 2

strMethod · 0.45
onConsolePrintMethod · 0.45

Tested by

no test coverage detected