From 06178f8499e0ff5961dc272c864969493821522f Mon Sep 17 00:00:00 2001 From: triton Date: Tue, 6 May 2014 16:36:50 +0100 Subject: [PATCH] Re-generated the OSX parser bindings. --- .../CSharp/i686-apple-darwin12.4.0/AST.cs | 22 +++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/AST.cs b/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/AST.cs index 913c71a0..5f500971 100644 --- a/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/AST.cs +++ b/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/AST.cs @@ -3389,7 +3389,7 @@ namespace CppSharp public unsafe partial class Parameter : CppSharp.Parser.AST.Declaration, IDisposable { - [StructLayout(LayoutKind.Explicit, Size = 80)] + [StructLayout(LayoutKind.Explicit, Size = 84)] public new struct Internal { [FieldOffset(0)] @@ -3437,6 +3437,9 @@ namespace CppSharp [FieldOffset(77)] internal bool HasDefaultValue; + [FieldOffset(80)] + internal uint Index; + [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser3AST9ParameterC2Ev")] @@ -3471,7 +3474,7 @@ namespace CppSharp public Parameter() : this(IntPtr.Zero) { - __Instance = Marshal.AllocHGlobal(80); + __Instance = Marshal.AllocHGlobal(84); Internal.ctor_0(__Instance); } @@ -3526,6 +3529,21 @@ namespace CppSharp __ptr->HasDefaultValue = value; } } + + public uint Index + { + get + { + var __ptr = (Internal*)__Instance.ToPointer(); + return __ptr->Index; + } + + set + { + var __ptr = (Internal*)__Instance.ToPointer(); + __ptr->Index = value; + } + } } public unsafe partial class Function : CppSharp.Parser.AST.Declaration, IDisposable