MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / format_func_args

Function format_func_args

lib/asmjit/asmjit/core/formatter.cpp:420–440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

418}
419
420static Error format_func_args(
421 String& sb,
422 FormatFlags format_flags,
423 const BaseCompiler* cc,
424 const FuncDetail& fd,
425 const FuncNode::ArgPack* arg_packs) noexcept {
426
427 uint32_t arg_count = fd.arg_count();
428 if (!arg_count) {
429 return sb.append("void");
430 }
431
432 for (uint32_t arg_index = 0; arg_index < arg_count; arg_index++) {
433 if (arg_index) {
434 ASMJIT_PROPAGATE(sb.append(", "));
435 }
436 ASMJIT_PROPAGATE(format_func_value_pack(sb, format_flags, cc, fd.arg_pack(arg_index), arg_packs[arg_index]._data));
437 }
438
439 return Error::kOk;
440}
441#endif
442
443Error format_node(

Callers 1

format_nodeFunction · 0.85

Calls 3

format_func_value_packFunction · 0.85
arg_countMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected