示例#1
0
 protected virtual void RenameMacro(Definitions.MacroDefinition macro)
 {
     if (macro.CSharpName != null)
     {
         return;
     }
     macro.CSharpName = macro.Name;
 }
示例#2
0
 public void WriteMacro(Definitions.MacroDefinition macro)
 {
     // WriteSummary(macro);
     if (macro.IsConst)
     {
         Writer.WriteLine($"public const {macro.TypeName} {macro.CSharpName} = {macro.CSharpExpr};");
     }
     else if (macro.TypeName != null && macro.CSharpExpr != null)
     {
         Writer.WriteLine($"public readonly static {macro.TypeName} {macro.CSharpName} = {macro.CSharpExpr};");
     }
     else
     {
         Writer.WriteLine($"// public readonly static int {macro.CSharpName} = {macro.ExprString};");
     }
 }
示例#3
0
 protected virtual void VisitMacro(Definitions.MacroDefinition macro)
 {
 }