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

Function ckpt_progress_label

common/script/progress_api.cpp:69–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69void ckpt_progress_label(struct ParseState* Parser, struct Value* ReturnValue, struct Value** Param, int NumArgs)
70{
71 const ScriptArgs args(Parser, Param, NumArgs, "progress_label");
72 const size_t layer = layerArg(args);
73 const char* label = args.strOr(1, "");
74 ScriptConsole::get().setLayerLabel(layer, label);
75}
76
77void ckpt_progress_end(struct ParseState* Parser, struct Value* ReturnValue, struct Value** Param, int NumArgs)
78{

Callers

nothing calls this directly

Calls 4

layerArgFunction · 0.85
getFunction · 0.85
strOrMethod · 0.80
setLayerLabelMethod · 0.80

Tested by

no test coverage detected