| 84 | // ----------------------------------------------------------------------- |
| 85 | |
| 86 | vec4f 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 |
nothing calls this directly
no test coverage detected