protected virtual void RenameMacro(Definitions.MacroDefinition macro) { if (macro.CSharpName != null) { return; } macro.CSharpName = macro.Name; }
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};"); } }
protected virtual void VisitMacro(Definitions.MacroDefinition macro) { }