MCPcopy Create free account
hub / github.com/csyonghe/Spire / PrintCallInstr

Method PrintCallInstr

Source/SpireCore/CLikeCodeGen.cpp:478–488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

476 }
477
478 void CLikeCodeGen::PrintCallInstr(CodeGenContext & ctx, CallInstruction * instr)
479 {
480 if (!instr->Type->IsVoid())
481 {
482 auto varName = ctx.DefineVariable(instr);
483 ctx.Body << varName;
484 ctx.Body << " = ";
485 }
486 PrintCallInstrExpr(ctx, instr);
487 ctx.Body << ";\n";
488 }
489
490 void CLikeCodeGen::PrintCastF2IInstrExpr(CodeGenContext & ctx, Float2IntInstruction * instr)
491 {

Callers

nothing calls this directly

Calls 2

IsVoidMethod · 0.80
DefineVariableMethod · 0.80

Tested by

no test coverage detected