示例#1
0
 private static void WriteMemoryCopy(LanguageWriter w, IMemoryCopyStatement state)
 {
     w.Write("::");
     w.WriteReference("memcpy", "Crt 関数 #include <memory.h>", null);
     w.Write("(");
     ExpressionWriter.WriteExpression(w, state.Destination, false);
     w.Write(", ");
     ExpressionWriter.WriteExpression(w, state.Source, false);
     w.Write(", ");
     ExpressionWriter.WriteExpression(w, state.Length, false);
     w.Write(");");
     w.WriteLine();
 }
 public virtual void VisitMemoryCopyStatement(IMemoryCopyStatement value)
 {
     VisitExpression(value.Source);
     VisitExpression(value.Destination);
     VisitExpression(value.Length);
 }
            private void WriteMemoryCopyStatement(IMemoryCopyStatement statement, IFormatter formatter)
            {
                this.WriteStatementSeparator(formatter);

                formatter.WriteKeyword("memcpy");
                formatter.Write("(");
                this.WriteExpression(statement.Source, formatter);
                formatter.Write(", ");
                this.WriteExpression(statement.Destination, formatter);
                formatter.Write(", ");
                this.WriteExpression(statement.Length, formatter);
                formatter.Write(")");
            }
 public virtual void VisitMemoryCopyStatement(IMemoryCopyStatement value)
 {
     this.VisitExpression(value.Source);
     this.VisitExpression(value.Destination);
     this.VisitExpression(value.Length);
 }
 public virtual IStatement TransformMemoryCopyStatement(IMemoryCopyStatement value)
 {
     value.Source = this.TransformExpression(value.Source);
     value.Destination = this.TransformExpression(value.Destination);
     value.Length = this.TransformExpression(value.Length);
     return value;
 }