Ejemplo n.º 1
0
 static void GenerateCppAssign(ICppIntrinsic intrinsic)
 {
     intrinsic.Runtime.AddLine(
         $"{intrinsic.RightArgument(name: "Left")} = {intrinsic.RightArgument(name: "Right")};");
 }
Ejemplo n.º 2
0
 static void GenerateCppSub(ICppIntrinsic intrinsic)
 {
     intrinsic.Runtime.AddLine(
         $"{intrinsic.ResultArgument(name: "Value")} = {intrinsic.RightArgument(name: "Left")} - {intrinsic.RightArgument(name: "Right")};");
 }
Ejemplo n.º 3
0
 static void GenerateCpp(ICppIntrinsic intrinsic)
 {
     intrinsic.EnsureGlobal(concept: "stdio", func: () => "#include <stdio.h>");
     intrinsic.Runtime.AddLine($"printf(\"Print: %I64u\\n\", {intrinsic.RightArgument(name: "Value")});");
 }