mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 20:39:01 +00:00
24 lines
No EOL
675 B
C#
24 lines
No EOL
675 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Cosmos.Compiler.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;
|
|
}
|
|
}
|
|
} |