MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / debug_print

Function debug_print

tutorials/integration/cpp/06_interop.cpp:86–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84// -----------------------------------------------------------------------
85
86vec4f debug_print(Context & context, SimNode_CallBase * call, vec4f * args) {
87 TypeInfo * ti = call->types[0];
88 auto val = args[0];
89
90 // Use the built-in debug_value formatter
91 TextWriter tw;
92 tw << debug_value(val, ti, PrintFlags::debugger);
93
94 auto result = context.allocateString(tw.str(), &call->debugInfo);
95 return cast<char *>::from(result);
96}
97
98// -----------------------------------------------------------------------
99// Interop function 3: any_hash

Callers

nothing calls this directly

Calls 3

debug_valueFunction · 0.85
allocateStringMethod · 0.80
strMethod · 0.45

Tested by

no test coverage detected