本文整理汇总了C#中MacroDefinition类的典型用法代码示例。如果您正苦于以下问题:C# MacroDefinition类的具体用法?C# MacroDefinition怎么用?C# MacroDefinition使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
MacroDefinition类属于命名空间,在下文中一共展示了MacroDefinition类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SaveMacroCommand
public SaveMacroCommand(String name, CommandScope scope,
bool active, MacroDefinition md)
: base(name, scope, active)
{
this.md = md;
this.next = null;
}
示例2: __CopyValue
private static MacroDefinition.Internal* __CopyValue(MacroDefinition.Internal native)
{
var ret = Marshal.AllocHGlobal(200);
CppSharp.Parser.AST.MacroDefinition.Internal.cctor_2(ret, new global::System.IntPtr(&native));
return (MacroDefinition.Internal*) ret;
}
示例3: __CreateInstance
public static MacroDefinition __CreateInstance(MacroDefinition.Internal native)
{
return new MacroDefinition(native);
}
示例4: MacroDefinition
protected MacroDefinition(MacroDefinition.Internal* native, bool skipVTables = false)
: base((CppSharp.Parser.AST.PreprocessedEntity.Internal*) null)
{
__PointerAdjustment = 0;
if (native == null)
return;
__Instance = new global::System.IntPtr(native);
}
示例5: __CreateInstance
public static MacroDefinition __CreateInstance(MacroDefinition.Internal native, bool skipVTables = false)
{
return new MacroDefinition(native, skipVTables);
}
示例6: __CopyValue
private static void* __CopyValue(MacroDefinition.__Internal native)
{
var ret = Marshal.AllocHGlobal(68);
global::CppSharp.Parser.AST.MacroDefinition.__Internal.cctor_1(ret, new global::System.IntPtr(&native));
return ret.ToPointer();
}
示例7: Write
public static void Write(System.IO.Stream stream, MacroDefinition macro)
{
IFormatter formatter = new BinaryFormatter();
formatter.Serialize(stream, VERSION);
formatter.Serialize(stream, macro);
}
示例8: MacroDefinition
internal MacroDefinition(MacroDefinition.Internal native)
: this(&native)
{
}
示例9: MacroDefinition
private MacroDefinition(MacroDefinition.Internal native)
: this(__CopyValue(native))
{
__ownsNativeInstance = true;
}
示例10: MacroDefinition
internal MacroDefinition(MacroDefinition.Internal native)
: this(__CopyValue(native))
{
}
示例11: VisitMacroDefinition
public override bool VisitMacroDefinition(MacroDefinition macro)
{
throw new NotImplementedException();
}
示例12: MacroDefinition
private MacroDefinition(MacroDefinition.Internal native)
: this(__CopyValue(native))
{
__ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this;
}
示例13: GenerateEnumItemFromMacro
public static Enumeration.Item GenerateEnumItemFromMacro(this ASTContext context,
MacroDefinition macro)
{
var item = new Enumeration.Item
{
Name = macro.Name,
Expression = macro.Expression,
Value = ParseMacroExpression(macro.Expression)
};
return item;
}
示例14: Macro
public Macro(MacroDefinition keys)
{
macroKeys = keys;
}