Browse Source

Re-generated the parser bindings for all platforms.

pull/169/head
triton 12 years ago
parent
commit
05073ef0e1
  1. 20
      src/CppParser/Bindings/CLI/CppParser.cpp
  2. 9
      src/CppParser/Bindings/CLI/CppParser.h
  3. 92
      src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/AST.cs
  4. 60
      src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/CppParser.cs

20
src/CppParser/Bindings/CLI/CppParser.cpp

@ -20,6 +20,20 @@ CppSharp::Parser::ParserOptions::ParserOptions()
NativePtr = new ::CppSharp::CppParser::ParserOptions(); NativePtr = new ::CppSharp::CppParser::ParserOptions();
} }
System::String^ CppSharp::Parser::ParserOptions::getArguments(unsigned int i)
{
auto __ret = ((::CppSharp::CppParser::ParserOptions*)NativePtr)->getArguments(i);
if (__ret == nullptr) return nullptr;
return clix::marshalString<clix::E_UTF8>(__ret);
}
void CppSharp::Parser::ParserOptions::addArguments(System::String^ s)
{
auto _arg0 = clix::marshalString<clix::E_UTF8>(s);
auto arg0 = _arg0.c_str();
((::CppSharp::CppParser::ParserOptions*)NativePtr)->addArguments(arg0);
}
System::String^ CppSharp::Parser::ParserOptions::getIncludeDirs(unsigned int i) System::String^ CppSharp::Parser::ParserOptions::getIncludeDirs(unsigned int i)
{ {
auto __ret = ((::CppSharp::CppParser::ParserOptions*)NativePtr)->getIncludeDirs(i); auto __ret = ((::CppSharp::CppParser::ParserOptions*)NativePtr)->getIncludeDirs(i);
@ -86,6 +100,12 @@ void CppSharp::Parser::ParserOptions::__Instance::set(System::IntPtr object)
NativePtr = (::CppSharp::CppParser::ParserOptions*)object.ToPointer(); NativePtr = (::CppSharp::CppParser::ParserOptions*)object.ToPointer();
} }
unsigned int CppSharp::Parser::ParserOptions::ArgumentsCount::get()
{
auto __ret = ((::CppSharp::CppParser::ParserOptions*)NativePtr)->getArgumentsCount();
return __ret;
}
System::String^ CppSharp::Parser::ParserOptions::FileName::get() System::String^ CppSharp::Parser::ParserOptions::FileName::get()
{ {
auto __ret = ((::CppSharp::CppParser::ParserOptions*)NativePtr)->getFileName(); auto __ret = ((::CppSharp::CppParser::ParserOptions*)NativePtr)->getFileName();

9
src/CppParser/Bindings/CLI/CppParser.h

@ -67,6 +67,11 @@ namespace CppSharp
ParserOptions(System::IntPtr native); ParserOptions(System::IntPtr native);
ParserOptions(); ParserOptions();
property unsigned int ArgumentsCount
{
unsigned int get();
}
property System::String^ FileName property System::String^ FileName
{ {
System::String^ get(); System::String^ get();
@ -141,6 +146,10 @@ namespace CppSharp
void set(bool); void set(bool);
} }
System::String^ getArguments(unsigned int i);
void addArguments(System::String^ s);
System::String^ getIncludeDirs(unsigned int i); System::String^ getIncludeDirs(unsigned int i);
void addIncludeDirs(System::String^ s); void addIncludeDirs(System::String^ s);

92
src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/AST.cs

@ -1512,7 +1512,7 @@ namespace CppSharp
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZN8CppSharp9CppParser3AST26TemplateSpecializationType12getArgumentsEj")] EntryPoint="_ZN8CppSharp9CppParser3AST26TemplateSpecializationType12getArgumentsEj")]
internal static extern void getArguments_0(global::System.IntPtr instance, global::System.IntPtr __return, uint i); internal static extern void getArguments_0(global::System.IntPtr __return, global::System.IntPtr instance, uint i);
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
@ -2401,13 +2401,13 @@ namespace CppSharp
{ {
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZN8CppSharp9CppParser3AST12VTableLayoutC2ERKS2_")] EntryPoint="_ZN8CppSharp9CppParser3AST12VTableLayoutC2Ev")]
internal static extern void ctor_1(global::System.IntPtr instance, global::System.IntPtr _0); internal static extern void ctor_0(global::System.IntPtr instance);
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZN8CppSharp9CppParser3AST12VTableLayoutC2Ev")] EntryPoint="_ZN8CppSharp9CppParser3AST12VTableLayoutC2ERKS2_")]
internal static extern void ctor_2(global::System.IntPtr instance); internal static extern void ctor_2(global::System.IntPtr instance, global::System.IntPtr _0);
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
@ -2417,7 +2417,7 @@ namespace CppSharp
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZN8CppSharp9CppParser3AST12VTableLayout13getComponentsEj")] EntryPoint="_ZN8CppSharp9CppParser3AST12VTableLayout13getComponentsEj")]
internal static extern void getComponents_0(global::System.IntPtr instance, global::System.IntPtr __return, uint i); internal static extern void getComponents_0(global::System.IntPtr __return, global::System.IntPtr instance, uint i);
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
@ -2463,7 +2463,7 @@ namespace CppSharp
public VTableLayout() public VTableLayout()
{ {
__Instance = Marshal.AllocHGlobal(12); __Instance = Marshal.AllocHGlobal(12);
Internal.ctor_2(__Instance); Internal.ctor_0(__Instance);
} }
public void Dispose() public void Dispose()
@ -2636,7 +2636,7 @@ namespace CppSharp
var __ptr = (Internal*)__Instance.ToPointer(); var __ptr = (Internal*)__Instance.ToPointer();
var __copy = new global::System.IntPtr(&__ptr->Layout); var __copy = new global::System.IntPtr(&__ptr->Layout);
var __instance = Marshal.AllocHGlobal(12); var __instance = Marshal.AllocHGlobal(12);
CppSharp.Parser.AST.VTableLayout.Internal.ctor_1(__instance, new global::System.IntPtr(&__copy)); CppSharp.Parser.AST.VTableLayout.Internal.ctor_2(__instance, new global::System.IntPtr(&__copy));
return new CppSharp.Parser.AST.VTableLayout(__instance); return new CppSharp.Parser.AST.VTableLayout(__instance);
} }
@ -2692,7 +2692,7 @@ namespace CppSharp
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZN8CppSharp9CppParser3AST11ClassLayout11getVFTablesEj")] EntryPoint="_ZN8CppSharp9CppParser3AST11ClassLayout11getVFTablesEj")]
internal static extern void getVFTables_0(global::System.IntPtr instance, global::System.IntPtr __return, uint i); internal static extern void getVFTables_0(global::System.IntPtr __return, global::System.IntPtr instance, uint i);
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
@ -2799,7 +2799,7 @@ namespace CppSharp
var __ptr = (Internal*)__Instance.ToPointer(); var __ptr = (Internal*)__Instance.ToPointer();
var __copy = new global::System.IntPtr(&__ptr->Layout); var __copy = new global::System.IntPtr(&__ptr->Layout);
var __instance = Marshal.AllocHGlobal(12); var __instance = Marshal.AllocHGlobal(12);
CppSharp.Parser.AST.VTableLayout.Internal.ctor_1(__instance, new global::System.IntPtr(&__copy)); CppSharp.Parser.AST.VTableLayout.Internal.ctor_2(__instance, new global::System.IntPtr(&__copy));
return new CppSharp.Parser.AST.VTableLayout(__instance); return new CppSharp.Parser.AST.VTableLayout(__instance);
} }
@ -3233,16 +3233,6 @@ namespace CppSharp
EntryPoint="_ZN8CppSharp9CppParser3AST18DeclarationContextD2Ev")] EntryPoint="_ZN8CppSharp9CppParser3AST18DeclarationContextD2Ev")]
internal static extern void dtor_0(global::System.IntPtr instance); internal static extern void dtor_0(global::System.IntPtr instance);
[SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZN8CppSharp9CppParser3AST18DeclarationContext13FindAnonymousEy")]
internal static extern global::System.IntPtr FindAnonymous_0(global::System.IntPtr instance, ulong key);
[SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZN8CppSharp9CppParser3AST18DeclarationContext20FindFunctionTemplateEPv")]
internal static extern global::System.IntPtr FindFunctionTemplate_0(global::System.IntPtr instance, global::System.IntPtr OriginalPtr);
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZN8CppSharp9CppParser3AST18DeclarationContext13getNamespacesEj")] EntryPoint="_ZN8CppSharp9CppParser3AST18DeclarationContext13getNamespacesEj")]
@ -3389,22 +3379,6 @@ namespace CppSharp
base.Dispose(disposing); base.Dispose(disposing);
} }
public CppSharp.Parser.AST.Declaration FindAnonymous(ulong key)
{
var arg0 = key;
var __ret = Internal.FindAnonymous_0(__Instance, arg0);
if (__ret == global::System.IntPtr.Zero) return null;
return new CppSharp.Parser.AST.Declaration(__ret);
}
public CppSharp.Parser.AST.FunctionTemplate FindFunctionTemplate(global::System.IntPtr OriginalPtr)
{
var arg0 = OriginalPtr;
var __ret = Internal.FindFunctionTemplate_0(__Instance, arg0);
if (__ret == global::System.IntPtr.Zero) return null;
return new CppSharp.Parser.AST.FunctionTemplate(__ret);
}
public CppSharp.Parser.AST.Namespace getNamespaces(uint i) public CppSharp.Parser.AST.Namespace getNamespaces(uint i)
{ {
var __ret = Internal.getNamespaces_0(__Instance, i); var __ret = Internal.getNamespaces_0(__Instance, i);
@ -4358,7 +4332,7 @@ namespace CppSharp
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZN8CppSharp9CppParser3AST11Enumeration8getItemsEj")] EntryPoint="_ZN8CppSharp9CppParser3AST11Enumeration8getItemsEj")]
internal static extern void getItems_0(global::System.IntPtr instance, global::System.IntPtr __return, uint i); internal static extern void getItems_0(global::System.IntPtr __return, global::System.IntPtr instance, uint i);
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
@ -5029,7 +5003,7 @@ namespace CppSharp
public unsafe partial class Class : CppSharp.Parser.AST.DeclarationContext, IDisposable, CppSharp.Runtime.ICppMarshal public unsafe partial class Class : CppSharp.Parser.AST.DeclarationContext, IDisposable, CppSharp.Runtime.ICppMarshal
{ {
[StructLayout(LayoutKind.Explicit, Size = 268)] [StructLayout(LayoutKind.Explicit, Size = 272)]
public new struct Internal public new struct Internal
{ {
[FieldOffset(212)] [FieldOffset(212)]
@ -5057,6 +5031,9 @@ namespace CppSharp
public bool HasNonTrivialDestructor; public bool HasNonTrivialDestructor;
[FieldOffset(220)] [FieldOffset(220)]
public bool IsExternCContext;
[FieldOffset(224)]
public CppSharp.Parser.AST.ClassLayout.Internal Layout; public CppSharp.Parser.AST.ClassLayout.Internal Layout;
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
@ -5137,7 +5114,7 @@ namespace CppSharp
int CppSharp.Runtime.ICppMarshal.NativeDataSize int CppSharp.Runtime.ICppMarshal.NativeDataSize
{ {
get { return 268; } get { return 272; }
} }
void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance)
@ -5166,7 +5143,7 @@ namespace CppSharp
public Class() public Class()
: this(IntPtr.Zero) : this(IntPtr.Zero)
{ {
__Instance = Marshal.AllocHGlobal(268); __Instance = Marshal.AllocHGlobal(272);
Internal.ctor_0(__Instance); Internal.ctor_0(__Instance);
} }
@ -5383,6 +5360,21 @@ namespace CppSharp
} }
} }
public bool IsExternCContext
{
get
{
var __ptr = (Internal*)__Instance.ToPointer();
return __ptr->IsExternCContext;
}
set
{
var __ptr = (Internal*)__Instance.ToPointer();
__ptr->IsExternCContext = value;
}
}
public CppSharp.Parser.AST.ClassLayout Layout public CppSharp.Parser.AST.ClassLayout Layout
{ {
get get
@ -5428,7 +5420,7 @@ namespace CppSharp
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZN8CppSharp9CppParser3AST8Template13getParametersEj")] EntryPoint="_ZN8CppSharp9CppParser3AST8Template13getParametersEj")]
internal static extern void getParameters_0(global::System.IntPtr instance, global::System.IntPtr __return, uint i); internal static extern void getParameters_0(global::System.IntPtr __return, global::System.IntPtr instance, uint i);
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
@ -5675,13 +5667,13 @@ namespace CppSharp
public unsafe partial class ClassTemplateSpecialization : CppSharp.Parser.AST.Class, IDisposable, CppSharp.Runtime.ICppMarshal public unsafe partial class ClassTemplateSpecialization : CppSharp.Parser.AST.Class, IDisposable, CppSharp.Runtime.ICppMarshal
{ {
[StructLayout(LayoutKind.Explicit, Size = 288)] [StructLayout(LayoutKind.Explicit, Size = 292)]
public new struct Internal public new struct Internal
{ {
[FieldOffset(268)] [FieldOffset(272)]
public global::System.IntPtr TemplatedDecl; public global::System.IntPtr TemplatedDecl;
[FieldOffset(284)] [FieldOffset(288)]
public CppSharp.Parser.AST.TemplateSpecializationKind SpecializationKind; public CppSharp.Parser.AST.TemplateSpecializationKind SpecializationKind;
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
@ -5702,7 +5694,7 @@ namespace CppSharp
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZN8CppSharp9CppParser3AST27ClassTemplateSpecialization12getArgumentsEj")] EntryPoint="_ZN8CppSharp9CppParser3AST27ClassTemplateSpecialization12getArgumentsEj")]
internal static extern void getArguments_0(global::System.IntPtr instance, global::System.IntPtr __return, uint i); internal static extern void getArguments_0(global::System.IntPtr __return, global::System.IntPtr instance, uint i);
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
@ -5717,7 +5709,7 @@ namespace CppSharp
int CppSharp.Runtime.ICppMarshal.NativeDataSize int CppSharp.Runtime.ICppMarshal.NativeDataSize
{ {
get { return 288; } get { return 292; }
} }
void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance)
@ -5746,7 +5738,7 @@ namespace CppSharp
public ClassTemplateSpecialization() public ClassTemplateSpecialization()
: this(IntPtr.Zero) : this(IntPtr.Zero)
{ {
__Instance = Marshal.AllocHGlobal(288); __Instance = Marshal.AllocHGlobal(292);
Internal.ctor_0(__Instance); Internal.ctor_0(__Instance);
} }
@ -5813,7 +5805,7 @@ namespace CppSharp
public unsafe partial class ClassTemplatePartialSpecialization : CppSharp.Parser.AST.ClassTemplateSpecialization, IDisposable, CppSharp.Runtime.ICppMarshal public unsafe partial class ClassTemplatePartialSpecialization : CppSharp.Parser.AST.ClassTemplateSpecialization, IDisposable, CppSharp.Runtime.ICppMarshal
{ {
[StructLayout(LayoutKind.Explicit, Size = 288)] [StructLayout(LayoutKind.Explicit, Size = 292)]
public new struct Internal public new struct Internal
{ {
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
@ -5834,7 +5826,7 @@ namespace CppSharp
int CppSharp.Runtime.ICppMarshal.NativeDataSize int CppSharp.Runtime.ICppMarshal.NativeDataSize
{ {
get { return 288; } get { return 292; }
} }
void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance)
@ -5863,7 +5855,7 @@ namespace CppSharp
public ClassTemplatePartialSpecialization() public ClassTemplatePartialSpecialization()
: this(IntPtr.Zero) : this(IntPtr.Zero)
{ {
__Instance = Marshal.AllocHGlobal(288); __Instance = Marshal.AllocHGlobal(292);
Internal.ctor_0(__Instance); Internal.ctor_0(__Instance);
} }

60
src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/CppParser.cs

@ -37,28 +37,28 @@ namespace CppSharp
public unsafe partial class ParserOptions : IDisposable, CppSharp.Runtime.ICppMarshal public unsafe partial class ParserOptions : IDisposable, CppSharp.Runtime.ICppMarshal
{ {
[StructLayout(LayoutKind.Explicit, Size = 88)] [StructLayout(LayoutKind.Explicit, Size = 100)]
public struct Internal public struct Internal
{ {
[FieldOffset(60)] [FieldOffset(72)]
public global::System.IntPtr ASTContext; public global::System.IntPtr ASTContext;
[FieldOffset(64)] [FieldOffset(76)]
public int ToolSetToUse; public int ToolSetToUse;
[FieldOffset(80)] [FieldOffset(92)]
public CppSharp.Parser.AST.CppAbi Abi; public CppSharp.Parser.AST.CppAbi Abi;
[FieldOffset(84)] [FieldOffset(96)]
public bool NoStandardIncludes; public bool NoStandardIncludes;
[FieldOffset(85)] [FieldOffset(97)]
public bool NoBuiltinIncludes; public bool NoBuiltinIncludes;
[FieldOffset(86)] [FieldOffset(98)]
public bool MicrosoftMode; public bool MicrosoftMode;
[FieldOffset(87)] [FieldOffset(99)]
public bool Verbose; public bool Verbose;
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
@ -76,6 +76,16 @@ namespace CppSharp
EntryPoint="_ZN8CppSharp9CppParser13ParserOptionsD2Ev")] EntryPoint="_ZN8CppSharp9CppParser13ParserOptionsD2Ev")]
internal static extern void dtor_0(global::System.IntPtr instance); internal static extern void dtor_0(global::System.IntPtr instance);
[SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZN8CppSharp9CppParser13ParserOptions12getArgumentsEj")]
internal static extern global::System.IntPtr getArguments_0(global::System.IntPtr instance, uint i);
[SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZN8CppSharp9CppParser13ParserOptions12addArgumentsEPKc")]
internal static extern void addArguments_0(global::System.IntPtr instance, global::System.IntPtr s);
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZN8CppSharp9CppParser13ParserOptions14getIncludeDirsEj")] EntryPoint="_ZN8CppSharp9CppParser13ParserOptions14getIncludeDirsEj")]
@ -116,6 +126,11 @@ namespace CppSharp
EntryPoint="_ZN8CppSharp9CppParser13ParserOptions14addLibraryDirsEPKc")] EntryPoint="_ZN8CppSharp9CppParser13ParserOptions14addLibraryDirsEPKc")]
internal static extern void addLibraryDirs_0(global::System.IntPtr instance, global::System.IntPtr s); internal static extern void addLibraryDirs_0(global::System.IntPtr instance, global::System.IntPtr s);
[SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZN8CppSharp9CppParser13ParserOptions17getArgumentsCountEv")]
internal static extern uint getArgumentsCount_0(global::System.IntPtr instance);
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZN8CppSharp9CppParser13ParserOptions11getFileNameEv")] EntryPoint="_ZN8CppSharp9CppParser13ParserOptions11getFileNameEv")]
@ -161,7 +176,7 @@ namespace CppSharp
int CppSharp.Runtime.ICppMarshal.NativeDataSize int CppSharp.Runtime.ICppMarshal.NativeDataSize
{ {
get { return 88; } get { return 100; }
} }
void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance)
@ -189,7 +204,7 @@ namespace CppSharp
public ParserOptions() public ParserOptions()
{ {
__Instance = Marshal.AllocHGlobal(88); __Instance = Marshal.AllocHGlobal(100);
Internal.ctor_0(__Instance); Internal.ctor_0(__Instance);
} }
@ -205,6 +220,20 @@ namespace CppSharp
Marshal.FreeHGlobal(__Instance); Marshal.FreeHGlobal(__Instance);
} }
public string getArguments(uint i)
{
var __ret = Internal.getArguments_0(__Instance, i);
if (__ret == global::System.IntPtr.Zero) return null;
return Marshal.PtrToStringAnsi(__ret);
}
public void addArguments(string s)
{
var arg0 = Marshal.StringToHGlobalAnsi(s);
Internal.addArguments_0(__Instance, arg0);
Marshal.FreeHGlobal(arg0);
}
public string getIncludeDirs(uint i) public string getIncludeDirs(uint i)
{ {
var __ret = Internal.getIncludeDirs_0(__Instance, i); var __ret = Internal.getIncludeDirs_0(__Instance, i);
@ -261,6 +290,15 @@ namespace CppSharp
Marshal.FreeHGlobal(arg0); Marshal.FreeHGlobal(arg0);
} }
public uint ArgumentsCount
{
get
{
var __ret = Internal.getArgumentsCount_0(__Instance);
return __ret;
}
}
public string FileName public string FileName
{ {
get get
@ -648,7 +686,7 @@ namespace CppSharp
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZN8CppSharp9CppParser12ParserResult14getDiagnosticsEj")] EntryPoint="_ZN8CppSharp9CppParser12ParserResult14getDiagnosticsEj")]
internal static extern void getDiagnostics_0(global::System.IntPtr instance, global::System.IntPtr __return, uint i); internal static extern void getDiagnostics_0(global::System.IntPtr __return, global::System.IntPtr instance, uint i);
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,

Loading…
Cancel
Save