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

Function ckpt_script_log

common/script/checkpoint_api.cpp:700–707  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

698/* ---- misc -------------------------------------------------------------- */
699
700void ckpt_script_log(struct ParseState* Parser, struct Value* ReturnValue, struct Value** Param, int NumArgs)
701{
702 const char* msg = ScriptArgs(Parser, Param, NumArgs, "script_log").strOr(0, "");
703 // Both destinations on purpose: the app log survives the run for a bug
704 // report, the console pane is what the user is watching while it happens.
705 Logging::info("[script] {}", msg);
706 ScriptConsole::get().log(msg);
707}
708
709void ckpt_selected_title(struct ParseState* Parser, struct Value* ReturnValue, struct Value** Param, int NumArgs)
710{

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected