mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 20:39:01 +00:00
24 lines
No EOL
551 B
C#
24 lines
No EOL
551 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Cosmos.Compiler.Assembler
|
|
{
|
|
[OpCode("%ifdef")]
|
|
public class IfDefined: Instruction, IIfDefined {
|
|
public string Symbol {
|
|
get;
|
|
set;
|
|
}
|
|
|
|
public IfDefined(string aSymbol) {
|
|
Symbol = aSymbol;
|
|
}
|
|
|
|
public override void WriteText(Assembler aAssembler, System.IO.TextWriter aOutput)
|
|
{
|
|
aOutput.Write(this.GetAsText());
|
|
}
|
|
}
|
|
} |