Browse Source

Add more method attributes.

pull/1/head
Zoltan Varga 15 years ago committed by Andreia Gaita
parent
commit
a3d176071e
  1. 16
      src/Mono.VisualC.Interop/Attributes.cs

16
src/Mono.VisualC.Interop/Attributes.cs

@ -40,6 +40,18 @@ namespace Mono.VisualC.Interop { @@ -40,6 +40,18 @@ namespace Mono.VisualC.Interop {
[AttributeUsage (AttributeTargets.Method)]
public class ProtectedAttribute : Attribute {}
[AttributeUsage (AttributeTargets.Method)]
public class InlineAttribute : Attribute {}
[AttributeUsage (AttributeTargets.Method)]
public class ArtificialAttribute : Attribute {}
[AttributeUsage (AttributeTargets.Method)]
public class CopyConstructorAttribute : Attribute {}
[AttributeUsage (AttributeTargets.Parameter)]
public class ByValAttribute : Attribute {}
[AttributeUsage (AttributeTargets.Parameter | AttributeTargets.ReturnValue)]
public class MangleAsAttribute : Attribute {
public CppType MangleType { get; private set; }
@ -103,6 +115,10 @@ using Mono.VisualC.Interop; @@ -103,6 +115,10 @@ using Mono.VisualC.Interop;
{
return method.IsDefined (typeof (ProtectedAttribute), false);
}
public virtual bool IsInline (MethodInfo method)
{
return method.IsDefined (typeof (InlineAttribute), false);
}
public virtual CppType GetMangleType (ICustomAttributeProvider icap, Type managedType)
{

Loading…
Cancel
Save