Cosmos/source/Indy.IL2CPU/Assembler/_Infra/InfraExtensions.cs
mterwoord_cp 5928581f2f
2008-11-07 12:27:08 +00:00

24 lines
No EOL
671 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Indy.IL2CPU.Assembler {
public static class InfraExtensions {
public static string GetAsText(this IDefine aThis) {
return "%define " + aThis.Symbol + " 1";
}
public static string GetAsText(this IIfDefined aThis) {
return "%ifdef " + aThis.Symbol;
}
public static string GetAsText(this IEndIfDefined aThis) {
return "%endif";
}
public static string GetAsText(this IIfNotDefined aThis) {
return "%ifndef " + aThis.Symbol;
}
}
}