Cosmos/source/Indy.IL2CPU.IL/OpCodeAttribute.cs
mterwoord_cp 4f1bf676e8
2007-09-03 17:12:38 +00:00

20 lines
No EOL
561 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Mono.Cecil.Cil;
namespace Indy.IL2CPU.IL {
[AttributeUsage(AttributeTargets.Class, Inherited=true, AllowMultiple=false)]
public class OpCodeAttribute: Attribute {
public readonly Code OpCode;
public readonly bool NeedsHeapSupport = false;
public OpCodeAttribute(Code aOpCode) {
OpCode = aOpCode;
}
public OpCodeAttribute(Code aOpCode, bool aNeedsHeapSupport):this(aOpCode) {
NeedsHeapSupport = aNeedsHeapSupport;
}
}
}