| 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 | |
| 57 | static script::ScriptObject::Regular<ConsoleScriptObject> reg("ConsoleScriptObject", {"global"}); |
no test coverage detected