diff --git a/src/Bridge/Function.cs b/src/Bridge/Function.cs index 7d83acb8..7f31d888 100644 --- a/src/Bridge/Function.cs +++ b/src/Bridge/Function.cs @@ -54,10 +54,31 @@ namespace Cxxi public Type ReturnType { get; set; } public List Parameters { get; set; } - public CallingConvention CallingConvention { get; set; } public bool IsVariadic { get; set; } public bool IsInline { get; set; } - + + public CallingConvention CallingConvention { get; set; } + + public bool IsThisCall + { + get { return CallingConvention == CallingConvention.ThisCall; } + } + + public bool IsStdCall + { + get { return CallingConvention == CallingConvention.StdCall; } + } + + public bool IsFastCall + { + get { return CallingConvention == CallingConvention.FastCall; } + } + + public bool IsCCall + { + get { return CallingConvention == CallingConvention.C; } + } + // Mangled name public string Mangled { get; set; }