MCPcopy Create free account
hub / github.com/BernardoGiordano/Checkpoint / ckpt_script_log

Function ckpt_script_log

common/script/checkpoint_api.cpp:627–634  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

625/* ---- misc -------------------------------------------------------------- */
626
627void ckpt_script_log(struct ParseState* Parser, struct Value* ReturnValue, struct Value** Param, int NumArgs)
628{
629 const char* msg = ScriptArgs(Parser, Param, NumArgs, "script_log").strOr(0, "");
630 // Both destinations on purpose: the app log survives the run for a bug
631 // report, the console pane is what the user is watching while it happens.
632 Logging::info("[script] {}", msg);
633 ScriptConsole::get().log(msg);
634}
635
636void ckpt_selected_title(struct ParseState* Parser, struct Value* ReturnValue, struct Value** Param, int NumArgs)
637{

Callers

nothing calls this directly

Calls 5

ScriptArgsClass · 0.85
infoFunction · 0.85
getFunction · 0.85
strOrMethod · 0.80
logMethod · 0.45

Tested by

no test coverage detected