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

Method PrintSelectInstr

Source/SpireCore/CLikeCodeGen.cpp:432–438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

430 }
431
432 void CLikeCodeGen::PrintSelectInstr(CodeGenContext & ctx, SelectInstruction * instr)
433 {
434 auto varName = ctx.DefineVariable(instr);
435 ctx.Body << varName << " = ";
436 PrintSelectInstrExpr(ctx, instr);
437 ctx.Body << ";\n";
438 }
439
440 void CLikeCodeGen::PrintCallInstrExprForTarget(CodeGenContext & ctx, CallInstruction * instr, String const& name)
441 {

Callers

nothing calls this directly

Calls 1

DefineVariableMethod · 0.80

Tested by

no test coverage detected