Browse Source

Regenerated the parser bindings.

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
pull/519/merge
Dimitar Dobrev 9 years ago
parent
commit
a052a494c9
  1. 980
      src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/AST.cs
  2. 36
      src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/CppParser.cs
  3. 6
      src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/Sources.cs
  4. 8
      src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/Target.cs
  5. 980
      src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/AST.cs
  6. 36
      src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/CppParser.cs
  7. 6
      src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/Sources.cs
  8. 8
      src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/Target.cs
  9. 980
      src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/AST.cs
  10. 36
      src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/CppParser.cs
  11. 6
      src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/Sources.cs
  12. 8
      src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/Target.cs
  13. 980
      src/CppParser/Bindings/CSharp/x86_64-linux-gnu/AST.cs
  14. 36
      src/CppParser/Bindings/CSharp/x86_64-linux-gnu/CppParser.cs
  15. 6
      src/CppParser/Bindings/CSharp/x86_64-linux-gnu/Sources.cs
  16. 8
      src/CppParser/Bindings/CSharp/x86_64-linux-gnu/Target.cs
  17. 980
      src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/AST.cs
  18. 36
      src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/CppParser.cs
  19. 6
      src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/Sources.cs
  20. 8
      src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/Target.cs

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

File diff suppressed because it is too large Load Diff

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

@ -243,7 +243,7 @@ namespace CppSharp
public static ParserOptions __CreateInstance(global::System.IntPtr native, bool skipVTables = false) public static ParserOptions __CreateInstance(global::System.IntPtr native, bool skipVTables = false)
{ {
return new ParserOptions((ParserOptions.Internal*) native, skipVTables); return new ParserOptions(native.ToPointer(), skipVTables);
} }
public static ParserOptions __CreateInstance(ParserOptions.Internal native, bool skipVTables = false) public static ParserOptions __CreateInstance(ParserOptions.Internal native, bool skipVTables = false)
@ -251,11 +251,11 @@ namespace CppSharp
return new ParserOptions(native, skipVTables); return new ParserOptions(native, skipVTables);
} }
private static ParserOptions.Internal* __CopyValue(ParserOptions.Internal native) private static void* __CopyValue(ParserOptions.Internal native)
{ {
var ret = Marshal.AllocHGlobal(120); var ret = Marshal.AllocHGlobal(120);
CppSharp.Parser.ParserOptions.Internal.cctor_2(ret, new global::System.IntPtr(&native)); CppSharp.Parser.ParserOptions.Internal.cctor_2(ret, new global::System.IntPtr(&native));
return (ParserOptions.Internal*) ret; return ret.ToPointer();
} }
private ParserOptions(ParserOptions.Internal native, bool skipVTables = false) private ParserOptions(ParserOptions.Internal native, bool skipVTables = false)
@ -265,7 +265,7 @@ namespace CppSharp
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
} }
protected ParserOptions(ParserOptions.Internal* native, bool skipVTables = false) protected ParserOptions(void* native, bool skipVTables = false)
{ {
if (native == null) if (native == null)
return; return;
@ -687,7 +687,7 @@ namespace CppSharp
public static ParserDiagnostic __CreateInstance(global::System.IntPtr native, bool skipVTables = false) public static ParserDiagnostic __CreateInstance(global::System.IntPtr native, bool skipVTables = false)
{ {
return new ParserDiagnostic((ParserDiagnostic.Internal*) native, skipVTables); return new ParserDiagnostic(native.ToPointer(), skipVTables);
} }
public static ParserDiagnostic __CreateInstance(ParserDiagnostic.Internal native, bool skipVTables = false) public static ParserDiagnostic __CreateInstance(ParserDiagnostic.Internal native, bool skipVTables = false)
@ -695,11 +695,11 @@ namespace CppSharp
return new ParserDiagnostic(native, skipVTables); return new ParserDiagnostic(native, skipVTables);
} }
private static ParserDiagnostic.Internal* __CopyValue(ParserDiagnostic.Internal native) private static void* __CopyValue(ParserDiagnostic.Internal native)
{ {
var ret = Marshal.AllocHGlobal(36); var ret = Marshal.AllocHGlobal(36);
CppSharp.Parser.ParserDiagnostic.Internal.cctor_1(ret, new global::System.IntPtr(&native)); CppSharp.Parser.ParserDiagnostic.Internal.cctor_1(ret, new global::System.IntPtr(&native));
return (ParserDiagnostic.Internal*) ret; return ret.ToPointer();
} }
private ParserDiagnostic(ParserDiagnostic.Internal native, bool skipVTables = false) private ParserDiagnostic(ParserDiagnostic.Internal native, bool skipVTables = false)
@ -709,7 +709,7 @@ namespace CppSharp
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
} }
protected ParserDiagnostic(ParserDiagnostic.Internal* native, bool skipVTables = false) protected ParserDiagnostic(void* native, bool skipVTables = false)
{ {
if (native == null) if (native == null)
return; return;
@ -884,7 +884,7 @@ namespace CppSharp
public static ParserResult __CreateInstance(global::System.IntPtr native, bool skipVTables = false) public static ParserResult __CreateInstance(global::System.IntPtr native, bool skipVTables = false)
{ {
return new ParserResult((ParserResult.Internal*) native, skipVTables); return new ParserResult(native.ToPointer(), skipVTables);
} }
public static ParserResult __CreateInstance(ParserResult.Internal native, bool skipVTables = false) public static ParserResult __CreateInstance(ParserResult.Internal native, bool skipVTables = false)
@ -892,11 +892,11 @@ namespace CppSharp
return new ParserResult(native, skipVTables); return new ParserResult(native, skipVTables);
} }
private static ParserResult.Internal* __CopyValue(ParserResult.Internal native) private static void* __CopyValue(ParserResult.Internal native)
{ {
var ret = Marshal.AllocHGlobal(28); var ret = Marshal.AllocHGlobal(28);
CppSharp.Parser.ParserResult.Internal.cctor_1(ret, new global::System.IntPtr(&native)); CppSharp.Parser.ParserResult.Internal.cctor_1(ret, new global::System.IntPtr(&native));
return (ParserResult.Internal*) ret; return ret.ToPointer();
} }
private ParserResult(ParserResult.Internal native, bool skipVTables = false) private ParserResult(ParserResult.Internal native, bool skipVTables = false)
@ -906,7 +906,7 @@ namespace CppSharp
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
} }
protected ParserResult(ParserResult.Internal* native, bool skipVTables = false) protected ParserResult(void* native, bool skipVTables = false)
{ {
if (native == null) if (native == null)
return; return;
@ -1061,7 +1061,7 @@ namespace CppSharp
public static ClangParser __CreateInstance(global::System.IntPtr native, bool skipVTables = false) public static ClangParser __CreateInstance(global::System.IntPtr native, bool skipVTables = false)
{ {
return new ClangParser((ClangParser.Internal*) native, skipVTables); return new ClangParser(native.ToPointer(), skipVTables);
} }
public static ClangParser __CreateInstance(ClangParser.Internal native, bool skipVTables = false) public static ClangParser __CreateInstance(ClangParser.Internal native, bool skipVTables = false)
@ -1069,11 +1069,11 @@ namespace CppSharp
return new ClangParser(native, skipVTables); return new ClangParser(native, skipVTables);
} }
private static ClangParser.Internal* __CopyValue(ClangParser.Internal native) private static void* __CopyValue(ClangParser.Internal native)
{ {
var ret = (ClangParser.Internal*) Marshal.AllocHGlobal(0); var ret = Marshal.AllocHGlobal(0);
*ret = native; *(ClangParser.Internal*) ret = native;
return ret; return ret.ToPointer();
} }
private ClangParser(ClangParser.Internal native, bool skipVTables = false) private ClangParser(ClangParser.Internal native, bool skipVTables = false)
@ -1083,7 +1083,7 @@ namespace CppSharp
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
} }
protected ClangParser(ClangParser.Internal* native, bool skipVTables = false) protected ClangParser(void* native, bool skipVTables = false)
{ {
if (native == null) if (native == null)
return; return;

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

@ -39,7 +39,7 @@ namespace CppSharp
public static SourceLocation __CreateInstance(global::System.IntPtr native, bool skipVTables = false) public static SourceLocation __CreateInstance(global::System.IntPtr native, bool skipVTables = false)
{ {
return new SourceLocation((SourceLocation.Internal*) native, skipVTables); return new SourceLocation(native.ToPointer(), skipVTables);
} }
public static SourceLocation __CreateInstance(SourceLocation.Internal native, bool skipVTables = false) public static SourceLocation __CreateInstance(SourceLocation.Internal native, bool skipVTables = false)
@ -53,9 +53,9 @@ namespace CppSharp
__instance = native; __instance = native;
} }
private SourceLocation(SourceLocation.Internal* native, bool skipVTables = false) : this() private SourceLocation(void* native, bool skipVTables = false) : this()
{ {
__instance = *native; __instance = *(Internal*) native;
} }
public SourceLocation(uint ID) public SourceLocation(uint ID)

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

@ -180,7 +180,7 @@ namespace CppSharp
public static ParserTargetInfo __CreateInstance(global::System.IntPtr native, bool skipVTables = false) public static ParserTargetInfo __CreateInstance(global::System.IntPtr native, bool skipVTables = false)
{ {
return new ParserTargetInfo((ParserTargetInfo.Internal*) native, skipVTables); return new ParserTargetInfo(native.ToPointer(), skipVTables);
} }
public static ParserTargetInfo __CreateInstance(ParserTargetInfo.Internal native, bool skipVTables = false) public static ParserTargetInfo __CreateInstance(ParserTargetInfo.Internal native, bool skipVTables = false)
@ -188,11 +188,11 @@ namespace CppSharp
return new ParserTargetInfo(native, skipVTables); return new ParserTargetInfo(native, skipVTables);
} }
private static ParserTargetInfo.Internal* __CopyValue(ParserTargetInfo.Internal native) private static void* __CopyValue(ParserTargetInfo.Internal native)
{ {
var ret = Marshal.AllocHGlobal(164); var ret = Marshal.AllocHGlobal(164);
CppSharp.Parser.ParserTargetInfo.Internal.cctor_1(ret, new global::System.IntPtr(&native)); CppSharp.Parser.ParserTargetInfo.Internal.cctor_1(ret, new global::System.IntPtr(&native));
return (ParserTargetInfo.Internal*) ret; return ret.ToPointer();
} }
private ParserTargetInfo(ParserTargetInfo.Internal native, bool skipVTables = false) private ParserTargetInfo(ParserTargetInfo.Internal native, bool skipVTables = false)
@ -202,7 +202,7 @@ namespace CppSharp
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
} }
protected ParserTargetInfo(ParserTargetInfo.Internal* native, bool skipVTables = false) protected ParserTargetInfo(void* native, bool skipVTables = false)
{ {
if (native == null) if (native == null)
return; return;

980
src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/AST.cs

File diff suppressed because it is too large Load Diff

36
src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/CppParser.cs

@ -243,7 +243,7 @@ namespace CppSharp
public static ParserOptions __CreateInstance(global::System.IntPtr native, bool skipVTables = false) public static ParserOptions __CreateInstance(global::System.IntPtr native, bool skipVTables = false)
{ {
return new ParserOptions((ParserOptions.Internal*) native, skipVTables); return new ParserOptions(native.ToPointer(), skipVTables);
} }
public static ParserOptions __CreateInstance(ParserOptions.Internal native, bool skipVTables = false) public static ParserOptions __CreateInstance(ParserOptions.Internal native, bool skipVTables = false)
@ -251,11 +251,11 @@ namespace CppSharp
return new ParserOptions(native, skipVTables); return new ParserOptions(native, skipVTables);
} }
private static ParserOptions.Internal* __CopyValue(ParserOptions.Internal native) private static void* __CopyValue(ParserOptions.Internal native)
{ {
var ret = Marshal.AllocHGlobal(144); var ret = Marshal.AllocHGlobal(144);
CppSharp.Parser.ParserOptions.Internal.cctor_2(ret, new global::System.IntPtr(&native)); CppSharp.Parser.ParserOptions.Internal.cctor_2(ret, new global::System.IntPtr(&native));
return (ParserOptions.Internal*) ret; return ret.ToPointer();
} }
private ParserOptions(ParserOptions.Internal native, bool skipVTables = false) private ParserOptions(ParserOptions.Internal native, bool skipVTables = false)
@ -265,7 +265,7 @@ namespace CppSharp
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
} }
protected ParserOptions(ParserOptions.Internal* native, bool skipVTables = false) protected ParserOptions(void* native, bool skipVTables = false)
{ {
if (native == null) if (native == null)
return; return;
@ -687,7 +687,7 @@ namespace CppSharp
public static ParserDiagnostic __CreateInstance(global::System.IntPtr native, bool skipVTables = false) public static ParserDiagnostic __CreateInstance(global::System.IntPtr native, bool skipVTables = false)
{ {
return new ParserDiagnostic((ParserDiagnostic.Internal*) native, skipVTables); return new ParserDiagnostic(native.ToPointer(), skipVTables);
} }
public static ParserDiagnostic __CreateInstance(ParserDiagnostic.Internal native, bool skipVTables = false) public static ParserDiagnostic __CreateInstance(ParserDiagnostic.Internal native, bool skipVTables = false)
@ -695,11 +695,11 @@ namespace CppSharp
return new ParserDiagnostic(native, skipVTables); return new ParserDiagnostic(native, skipVTables);
} }
private static ParserDiagnostic.Internal* __CopyValue(ParserDiagnostic.Internal native) private static void* __CopyValue(ParserDiagnostic.Internal native)
{ {
var ret = Marshal.AllocHGlobal(60); var ret = Marshal.AllocHGlobal(60);
CppSharp.Parser.ParserDiagnostic.Internal.cctor_1(ret, new global::System.IntPtr(&native)); CppSharp.Parser.ParserDiagnostic.Internal.cctor_1(ret, new global::System.IntPtr(&native));
return (ParserDiagnostic.Internal*) ret; return ret.ToPointer();
} }
private ParserDiagnostic(ParserDiagnostic.Internal native, bool skipVTables = false) private ParserDiagnostic(ParserDiagnostic.Internal native, bool skipVTables = false)
@ -709,7 +709,7 @@ namespace CppSharp
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
} }
protected ParserDiagnostic(ParserDiagnostic.Internal* native, bool skipVTables = false) protected ParserDiagnostic(void* native, bool skipVTables = false)
{ {
if (native == null) if (native == null)
return; return;
@ -884,7 +884,7 @@ namespace CppSharp
public static ParserResult __CreateInstance(global::System.IntPtr native, bool skipVTables = false) public static ParserResult __CreateInstance(global::System.IntPtr native, bool skipVTables = false)
{ {
return new ParserResult((ParserResult.Internal*) native, skipVTables); return new ParserResult(native.ToPointer(), skipVTables);
} }
public static ParserResult __CreateInstance(ParserResult.Internal native, bool skipVTables = false) public static ParserResult __CreateInstance(ParserResult.Internal native, bool skipVTables = false)
@ -892,11 +892,11 @@ namespace CppSharp
return new ParserResult(native, skipVTables); return new ParserResult(native, skipVTables);
} }
private static ParserResult.Internal* __CopyValue(ParserResult.Internal native) private static void* __CopyValue(ParserResult.Internal native)
{ {
var ret = Marshal.AllocHGlobal(28); var ret = Marshal.AllocHGlobal(28);
CppSharp.Parser.ParserResult.Internal.cctor_1(ret, new global::System.IntPtr(&native)); CppSharp.Parser.ParserResult.Internal.cctor_1(ret, new global::System.IntPtr(&native));
return (ParserResult.Internal*) ret; return ret.ToPointer();
} }
private ParserResult(ParserResult.Internal native, bool skipVTables = false) private ParserResult(ParserResult.Internal native, bool skipVTables = false)
@ -906,7 +906,7 @@ namespace CppSharp
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
} }
protected ParserResult(ParserResult.Internal* native, bool skipVTables = false) protected ParserResult(void* native, bool skipVTables = false)
{ {
if (native == null) if (native == null)
return; return;
@ -1061,7 +1061,7 @@ namespace CppSharp
public static ClangParser __CreateInstance(global::System.IntPtr native, bool skipVTables = false) public static ClangParser __CreateInstance(global::System.IntPtr native, bool skipVTables = false)
{ {
return new ClangParser((ClangParser.Internal*) native, skipVTables); return new ClangParser(native.ToPointer(), skipVTables);
} }
public static ClangParser __CreateInstance(ClangParser.Internal native, bool skipVTables = false) public static ClangParser __CreateInstance(ClangParser.Internal native, bool skipVTables = false)
@ -1069,11 +1069,11 @@ namespace CppSharp
return new ClangParser(native, skipVTables); return new ClangParser(native, skipVTables);
} }
private static ClangParser.Internal* __CopyValue(ClangParser.Internal native) private static void* __CopyValue(ClangParser.Internal native)
{ {
var ret = (ClangParser.Internal*) Marshal.AllocHGlobal(0); var ret = Marshal.AllocHGlobal(0);
*ret = native; *(ClangParser.Internal*) ret = native;
return ret; return ret.ToPointer();
} }
private ClangParser(ClangParser.Internal native, bool skipVTables = false) private ClangParser(ClangParser.Internal native, bool skipVTables = false)
@ -1083,7 +1083,7 @@ namespace CppSharp
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
} }
protected ClangParser(ClangParser.Internal* native, bool skipVTables = false) protected ClangParser(void* native, bool skipVTables = false)
{ {
if (native == null) if (native == null)
return; return;

6
src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/Sources.cs

@ -39,7 +39,7 @@ namespace CppSharp
public static SourceLocation __CreateInstance(global::System.IntPtr native, bool skipVTables = false) public static SourceLocation __CreateInstance(global::System.IntPtr native, bool skipVTables = false)
{ {
return new SourceLocation((SourceLocation.Internal*) native, skipVTables); return new SourceLocation(native.ToPointer(), skipVTables);
} }
public static SourceLocation __CreateInstance(SourceLocation.Internal native, bool skipVTables = false) public static SourceLocation __CreateInstance(SourceLocation.Internal native, bool skipVTables = false)
@ -53,9 +53,9 @@ namespace CppSharp
__instance = native; __instance = native;
} }
private SourceLocation(SourceLocation.Internal* native, bool skipVTables = false) : this() private SourceLocation(void* native, bool skipVTables = false) : this()
{ {
__instance = *native; __instance = *(Internal*) native;
} }
public SourceLocation(uint ID) public SourceLocation(uint ID)

8
src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/Target.cs

@ -180,7 +180,7 @@ namespace CppSharp
public static ParserTargetInfo __CreateInstance(global::System.IntPtr native, bool skipVTables = false) public static ParserTargetInfo __CreateInstance(global::System.IntPtr native, bool skipVTables = false)
{ {
return new ParserTargetInfo((ParserTargetInfo.Internal*) native, skipVTables); return new ParserTargetInfo(native.ToPointer(), skipVTables);
} }
public static ParserTargetInfo __CreateInstance(ParserTargetInfo.Internal native, bool skipVTables = false) public static ParserTargetInfo __CreateInstance(ParserTargetInfo.Internal native, bool skipVTables = false)
@ -188,11 +188,11 @@ namespace CppSharp
return new ParserTargetInfo(native, skipVTables); return new ParserTargetInfo(native, skipVTables);
} }
private static ParserTargetInfo.Internal* __CopyValue(ParserTargetInfo.Internal native) private static void* __CopyValue(ParserTargetInfo.Internal native)
{ {
var ret = Marshal.AllocHGlobal(176); var ret = Marshal.AllocHGlobal(176);
CppSharp.Parser.ParserTargetInfo.Internal.cctor_1(ret, new global::System.IntPtr(&native)); CppSharp.Parser.ParserTargetInfo.Internal.cctor_1(ret, new global::System.IntPtr(&native));
return (ParserTargetInfo.Internal*) ret; return ret.ToPointer();
} }
private ParserTargetInfo(ParserTargetInfo.Internal native, bool skipVTables = false) private ParserTargetInfo(ParserTargetInfo.Internal native, bool skipVTables = false)
@ -202,7 +202,7 @@ namespace CppSharp
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
} }
protected ParserTargetInfo(ParserTargetInfo.Internal* native, bool skipVTables = false) protected ParserTargetInfo(void* native, bool skipVTables = false)
{ {
if (native == null) if (native == null)
return; return;

980
src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/AST.cs

File diff suppressed because it is too large Load Diff

36
src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/CppParser.cs

@ -243,7 +243,7 @@ namespace CppSharp
public static ParserOptions __CreateInstance(global::System.IntPtr native, bool skipVTables = false) public static ParserOptions __CreateInstance(global::System.IntPtr native, bool skipVTables = false)
{ {
return new ParserOptions((ParserOptions.Internal*) native, skipVTables); return new ParserOptions(native.ToPointer(), skipVTables);
} }
public static ParserOptions __CreateInstance(ParserOptions.Internal native, bool skipVTables = false) public static ParserOptions __CreateInstance(ParserOptions.Internal native, bool skipVTables = false)
@ -251,11 +251,11 @@ namespace CppSharp
return new ParserOptions(native, skipVTables); return new ParserOptions(native, skipVTables);
} }
private static ParserOptions.Internal* __CopyValue(ParserOptions.Internal native) private static void* __CopyValue(ParserOptions.Internal native)
{ {
var ret = Marshal.AllocHGlobal(232); var ret = Marshal.AllocHGlobal(232);
CppSharp.Parser.ParserOptions.Internal.cctor_2(ret, new global::System.IntPtr(&native)); CppSharp.Parser.ParserOptions.Internal.cctor_2(ret, new global::System.IntPtr(&native));
return (ParserOptions.Internal*) ret; return ret.ToPointer();
} }
private ParserOptions(ParserOptions.Internal native, bool skipVTables = false) private ParserOptions(ParserOptions.Internal native, bool skipVTables = false)
@ -265,7 +265,7 @@ namespace CppSharp
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
} }
protected ParserOptions(ParserOptions.Internal* native, bool skipVTables = false) protected ParserOptions(void* native, bool skipVTables = false)
{ {
if (native == null) if (native == null)
return; return;
@ -687,7 +687,7 @@ namespace CppSharp
public static ParserDiagnostic __CreateInstance(global::System.IntPtr native, bool skipVTables = false) public static ParserDiagnostic __CreateInstance(global::System.IntPtr native, bool skipVTables = false)
{ {
return new ParserDiagnostic((ParserDiagnostic.Internal*) native, skipVTables); return new ParserDiagnostic(native.ToPointer(), skipVTables);
} }
public static ParserDiagnostic __CreateInstance(ParserDiagnostic.Internal native, bool skipVTables = false) public static ParserDiagnostic __CreateInstance(ParserDiagnostic.Internal native, bool skipVTables = false)
@ -695,11 +695,11 @@ namespace CppSharp
return new ParserDiagnostic(native, skipVTables); return new ParserDiagnostic(native, skipVTables);
} }
private static ParserDiagnostic.Internal* __CopyValue(ParserDiagnostic.Internal native) private static void* __CopyValue(ParserDiagnostic.Internal native)
{ {
var ret = Marshal.AllocHGlobal(64); var ret = Marshal.AllocHGlobal(64);
CppSharp.Parser.ParserDiagnostic.Internal.cctor_1(ret, new global::System.IntPtr(&native)); CppSharp.Parser.ParserDiagnostic.Internal.cctor_1(ret, new global::System.IntPtr(&native));
return (ParserDiagnostic.Internal*) ret; return ret.ToPointer();
} }
private ParserDiagnostic(ParserDiagnostic.Internal native, bool skipVTables = false) private ParserDiagnostic(ParserDiagnostic.Internal native, bool skipVTables = false)
@ -709,7 +709,7 @@ namespace CppSharp
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
} }
protected ParserDiagnostic(ParserDiagnostic.Internal* native, bool skipVTables = false) protected ParserDiagnostic(void* native, bool skipVTables = false)
{ {
if (native == null) if (native == null)
return; return;
@ -884,7 +884,7 @@ namespace CppSharp
public static ParserResult __CreateInstance(global::System.IntPtr native, bool skipVTables = false) public static ParserResult __CreateInstance(global::System.IntPtr native, bool skipVTables = false)
{ {
return new ParserResult((ParserResult.Internal*) native, skipVTables); return new ParserResult(native.ToPointer(), skipVTables);
} }
public static ParserResult __CreateInstance(ParserResult.Internal native, bool skipVTables = false) public static ParserResult __CreateInstance(ParserResult.Internal native, bool skipVTables = false)
@ -892,11 +892,11 @@ namespace CppSharp
return new ParserResult(native, skipVTables); return new ParserResult(native, skipVTables);
} }
private static ParserResult.Internal* __CopyValue(ParserResult.Internal native) private static void* __CopyValue(ParserResult.Internal native)
{ {
var ret = Marshal.AllocHGlobal(56); var ret = Marshal.AllocHGlobal(56);
CppSharp.Parser.ParserResult.Internal.cctor_1(ret, new global::System.IntPtr(&native)); CppSharp.Parser.ParserResult.Internal.cctor_1(ret, new global::System.IntPtr(&native));
return (ParserResult.Internal*) ret; return ret.ToPointer();
} }
private ParserResult(ParserResult.Internal native, bool skipVTables = false) private ParserResult(ParserResult.Internal native, bool skipVTables = false)
@ -906,7 +906,7 @@ namespace CppSharp
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
} }
protected ParserResult(ParserResult.Internal* native, bool skipVTables = false) protected ParserResult(void* native, bool skipVTables = false)
{ {
if (native == null) if (native == null)
return; return;
@ -1061,7 +1061,7 @@ namespace CppSharp
public static ClangParser __CreateInstance(global::System.IntPtr native, bool skipVTables = false) public static ClangParser __CreateInstance(global::System.IntPtr native, bool skipVTables = false)
{ {
return new ClangParser((ClangParser.Internal*) native, skipVTables); return new ClangParser(native.ToPointer(), skipVTables);
} }
public static ClangParser __CreateInstance(ClangParser.Internal native, bool skipVTables = false) public static ClangParser __CreateInstance(ClangParser.Internal native, bool skipVTables = false)
@ -1069,11 +1069,11 @@ namespace CppSharp
return new ClangParser(native, skipVTables); return new ClangParser(native, skipVTables);
} }
private static ClangParser.Internal* __CopyValue(ClangParser.Internal native) private static void* __CopyValue(ClangParser.Internal native)
{ {
var ret = (ClangParser.Internal*) Marshal.AllocHGlobal(0); var ret = Marshal.AllocHGlobal(0);
*ret = native; *(ClangParser.Internal*) ret = native;
return ret; return ret.ToPointer();
} }
private ClangParser(ClangParser.Internal native, bool skipVTables = false) private ClangParser(ClangParser.Internal native, bool skipVTables = false)
@ -1083,7 +1083,7 @@ namespace CppSharp
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
} }
protected ClangParser(ClangParser.Internal* native, bool skipVTables = false) protected ClangParser(void* native, bool skipVTables = false)
{ {
if (native == null) if (native == null)
return; return;

6
src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/Sources.cs

@ -39,7 +39,7 @@ namespace CppSharp
public static SourceLocation __CreateInstance(global::System.IntPtr native, bool skipVTables = false) public static SourceLocation __CreateInstance(global::System.IntPtr native, bool skipVTables = false)
{ {
return new SourceLocation((SourceLocation.Internal*) native, skipVTables); return new SourceLocation(native.ToPointer(), skipVTables);
} }
public static SourceLocation __CreateInstance(SourceLocation.Internal native, bool skipVTables = false) public static SourceLocation __CreateInstance(SourceLocation.Internal native, bool skipVTables = false)
@ -53,9 +53,9 @@ namespace CppSharp
__instance = native; __instance = native;
} }
private SourceLocation(SourceLocation.Internal* native, bool skipVTables = false) : this() private SourceLocation(void* native, bool skipVTables = false) : this()
{ {
__instance = *native; __instance = *(Internal*) native;
} }
public SourceLocation(uint ID) public SourceLocation(uint ID)

8
src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/Target.cs

@ -180,7 +180,7 @@ namespace CppSharp
public static ParserTargetInfo __CreateInstance(global::System.IntPtr native, bool skipVTables = false) public static ParserTargetInfo __CreateInstance(global::System.IntPtr native, bool skipVTables = false)
{ {
return new ParserTargetInfo((ParserTargetInfo.Internal*) native, skipVTables); return new ParserTargetInfo(native.ToPointer(), skipVTables);
} }
public static ParserTargetInfo __CreateInstance(ParserTargetInfo.Internal native, bool skipVTables = false) public static ParserTargetInfo __CreateInstance(ParserTargetInfo.Internal native, bool skipVTables = false)
@ -188,11 +188,11 @@ namespace CppSharp
return new ParserTargetInfo(native, skipVTables); return new ParserTargetInfo(native, skipVTables);
} }
private static ParserTargetInfo.Internal* __CopyValue(ParserTargetInfo.Internal native) private static void* __CopyValue(ParserTargetInfo.Internal native)
{ {
var ret = Marshal.AllocHGlobal(176); var ret = Marshal.AllocHGlobal(176);
CppSharp.Parser.ParserTargetInfo.Internal.cctor_1(ret, new global::System.IntPtr(&native)); CppSharp.Parser.ParserTargetInfo.Internal.cctor_1(ret, new global::System.IntPtr(&native));
return (ParserTargetInfo.Internal*) ret; return ret.ToPointer();
} }
private ParserTargetInfo(ParserTargetInfo.Internal native, bool skipVTables = false) private ParserTargetInfo(ParserTargetInfo.Internal native, bool skipVTables = false)
@ -202,7 +202,7 @@ namespace CppSharp
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
} }
protected ParserTargetInfo(ParserTargetInfo.Internal* native, bool skipVTables = false) protected ParserTargetInfo(void* native, bool skipVTables = false)
{ {
if (native == null) if (native == null)
return; return;

980
src/CppParser/Bindings/CSharp/x86_64-linux-gnu/AST.cs

File diff suppressed because it is too large Load Diff

36
src/CppParser/Bindings/CSharp/x86_64-linux-gnu/CppParser.cs

@ -243,7 +243,7 @@ namespace CppSharp
public static ParserOptions __CreateInstance(global::System.IntPtr native, bool skipVTables = false) public static ParserOptions __CreateInstance(global::System.IntPtr native, bool skipVTables = false)
{ {
return new ParserOptions((ParserOptions.Internal*) native, skipVTables); return new ParserOptions(native.ToPointer(), skipVTables);
} }
public static ParserOptions __CreateInstance(ParserOptions.Internal native, bool skipVTables = false) public static ParserOptions __CreateInstance(ParserOptions.Internal native, bool skipVTables = false)
@ -251,11 +251,11 @@ namespace CppSharp
return new ParserOptions(native, skipVTables); return new ParserOptions(native, skipVTables);
} }
private static ParserOptions.Internal* __CopyValue(ParserOptions.Internal native) private static void* __CopyValue(ParserOptions.Internal native)
{ {
var ret = Marshal.AllocHGlobal(200); var ret = Marshal.AllocHGlobal(200);
CppSharp.Parser.ParserOptions.Internal.cctor_1(ret, new global::System.IntPtr(&native)); CppSharp.Parser.ParserOptions.Internal.cctor_1(ret, new global::System.IntPtr(&native));
return (ParserOptions.Internal*) ret; return ret.ToPointer();
} }
private ParserOptions(ParserOptions.Internal native, bool skipVTables = false) private ParserOptions(ParserOptions.Internal native, bool skipVTables = false)
@ -265,7 +265,7 @@ namespace CppSharp
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
} }
protected ParserOptions(ParserOptions.Internal* native, bool skipVTables = false) protected ParserOptions(void* native, bool skipVTables = false)
{ {
if (native == null) if (native == null)
return; return;
@ -687,7 +687,7 @@ namespace CppSharp
public static ParserDiagnostic __CreateInstance(global::System.IntPtr native, bool skipVTables = false) public static ParserDiagnostic __CreateInstance(global::System.IntPtr native, bool skipVTables = false)
{ {
return new ParserDiagnostic((ParserDiagnostic.Internal*) native, skipVTables); return new ParserDiagnostic(native.ToPointer(), skipVTables);
} }
public static ParserDiagnostic __CreateInstance(ParserDiagnostic.Internal native, bool skipVTables = false) public static ParserDiagnostic __CreateInstance(ParserDiagnostic.Internal native, bool skipVTables = false)
@ -695,11 +695,11 @@ namespace CppSharp
return new ParserDiagnostic(native, skipVTables); return new ParserDiagnostic(native, skipVTables);
} }
private static ParserDiagnostic.Internal* __CopyValue(ParserDiagnostic.Internal native) private static void* __CopyValue(ParserDiagnostic.Internal native)
{ {
var ret = Marshal.AllocHGlobal(32); var ret = Marshal.AllocHGlobal(32);
CppSharp.Parser.ParserDiagnostic.Internal.cctor_1(ret, new global::System.IntPtr(&native)); CppSharp.Parser.ParserDiagnostic.Internal.cctor_1(ret, new global::System.IntPtr(&native));
return (ParserDiagnostic.Internal*) ret; return ret.ToPointer();
} }
private ParserDiagnostic(ParserDiagnostic.Internal native, bool skipVTables = false) private ParserDiagnostic(ParserDiagnostic.Internal native, bool skipVTables = false)
@ -709,7 +709,7 @@ namespace CppSharp
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
} }
protected ParserDiagnostic(ParserDiagnostic.Internal* native, bool skipVTables = false) protected ParserDiagnostic(void* native, bool skipVTables = false)
{ {
if (native == null) if (native == null)
return; return;
@ -884,7 +884,7 @@ namespace CppSharp
public static ParserResult __CreateInstance(global::System.IntPtr native, bool skipVTables = false) public static ParserResult __CreateInstance(global::System.IntPtr native, bool skipVTables = false)
{ {
return new ParserResult((ParserResult.Internal*) native, skipVTables); return new ParserResult(native.ToPointer(), skipVTables);
} }
public static ParserResult __CreateInstance(ParserResult.Internal native, bool skipVTables = false) public static ParserResult __CreateInstance(ParserResult.Internal native, bool skipVTables = false)
@ -892,11 +892,11 @@ namespace CppSharp
return new ParserResult(native, skipVTables); return new ParserResult(native, skipVTables);
} }
private static ParserResult.Internal* __CopyValue(ParserResult.Internal native) private static void* __CopyValue(ParserResult.Internal native)
{ {
var ret = Marshal.AllocHGlobal(56); var ret = Marshal.AllocHGlobal(56);
CppSharp.Parser.ParserResult.Internal.cctor_1(ret, new global::System.IntPtr(&native)); CppSharp.Parser.ParserResult.Internal.cctor_1(ret, new global::System.IntPtr(&native));
return (ParserResult.Internal*) ret; return ret.ToPointer();
} }
private ParserResult(ParserResult.Internal native, bool skipVTables = false) private ParserResult(ParserResult.Internal native, bool skipVTables = false)
@ -906,7 +906,7 @@ namespace CppSharp
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
} }
protected ParserResult(ParserResult.Internal* native, bool skipVTables = false) protected ParserResult(void* native, bool skipVTables = false)
{ {
if (native == null) if (native == null)
return; return;
@ -1061,7 +1061,7 @@ namespace CppSharp
public static ClangParser __CreateInstance(global::System.IntPtr native, bool skipVTables = false) public static ClangParser __CreateInstance(global::System.IntPtr native, bool skipVTables = false)
{ {
return new ClangParser((ClangParser.Internal*) native, skipVTables); return new ClangParser(native.ToPointer(), skipVTables);
} }
public static ClangParser __CreateInstance(ClangParser.Internal native, bool skipVTables = false) public static ClangParser __CreateInstance(ClangParser.Internal native, bool skipVTables = false)
@ -1069,11 +1069,11 @@ namespace CppSharp
return new ClangParser(native, skipVTables); return new ClangParser(native, skipVTables);
} }
private static ClangParser.Internal* __CopyValue(ClangParser.Internal native) private static void* __CopyValue(ClangParser.Internal native)
{ {
var ret = (ClangParser.Internal*) Marshal.AllocHGlobal(0); var ret = Marshal.AllocHGlobal(0);
*ret = native; *(ClangParser.Internal*) ret = native;
return ret; return ret.ToPointer();
} }
private ClangParser(ClangParser.Internal native, bool skipVTables = false) private ClangParser(ClangParser.Internal native, bool skipVTables = false)
@ -1083,7 +1083,7 @@ namespace CppSharp
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
} }
protected ClangParser(ClangParser.Internal* native, bool skipVTables = false) protected ClangParser(void* native, bool skipVTables = false)
{ {
if (native == null) if (native == null)
return; return;

6
src/CppParser/Bindings/CSharp/x86_64-linux-gnu/Sources.cs

@ -39,7 +39,7 @@ namespace CppSharp
public static SourceLocation __CreateInstance(global::System.IntPtr native, bool skipVTables = false) public static SourceLocation __CreateInstance(global::System.IntPtr native, bool skipVTables = false)
{ {
return new SourceLocation((SourceLocation.Internal*) native, skipVTables); return new SourceLocation(native.ToPointer(), skipVTables);
} }
public static SourceLocation __CreateInstance(SourceLocation.Internal native, bool skipVTables = false) public static SourceLocation __CreateInstance(SourceLocation.Internal native, bool skipVTables = false)
@ -53,9 +53,9 @@ namespace CppSharp
__instance = native; __instance = native;
} }
private SourceLocation(SourceLocation.Internal* native, bool skipVTables = false) : this() private SourceLocation(void* native, bool skipVTables = false) : this()
{ {
__instance = *native; __instance = *(Internal*) native;
} }
public SourceLocation(uint ID) public SourceLocation(uint ID)

8
src/CppParser/Bindings/CSharp/x86_64-linux-gnu/Target.cs

@ -180,7 +180,7 @@ namespace CppSharp
public static ParserTargetInfo __CreateInstance(global::System.IntPtr native, bool skipVTables = false) public static ParserTargetInfo __CreateInstance(global::System.IntPtr native, bool skipVTables = false)
{ {
return new ParserTargetInfo((ParserTargetInfo.Internal*) native, skipVTables); return new ParserTargetInfo(native.ToPointer(), skipVTables);
} }
public static ParserTargetInfo __CreateInstance(ParserTargetInfo.Internal native, bool skipVTables = false) public static ParserTargetInfo __CreateInstance(ParserTargetInfo.Internal native, bool skipVTables = false)
@ -188,11 +188,11 @@ namespace CppSharp
return new ParserTargetInfo(native, skipVTables); return new ParserTargetInfo(native, skipVTables);
} }
private static ParserTargetInfo.Internal* __CopyValue(ParserTargetInfo.Internal native) private static void* __CopyValue(ParserTargetInfo.Internal native)
{ {
var ret = Marshal.AllocHGlobal(160); var ret = Marshal.AllocHGlobal(160);
CppSharp.Parser.ParserTargetInfo.Internal.cctor_1(ret, new global::System.IntPtr(&native)); CppSharp.Parser.ParserTargetInfo.Internal.cctor_1(ret, new global::System.IntPtr(&native));
return (ParserTargetInfo.Internal*) ret; return ret.ToPointer();
} }
private ParserTargetInfo(ParserTargetInfo.Internal native, bool skipVTables = false) private ParserTargetInfo(ParserTargetInfo.Internal native, bool skipVTables = false)
@ -202,7 +202,7 @@ namespace CppSharp
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
} }
protected ParserTargetInfo(ParserTargetInfo.Internal* native, bool skipVTables = false) protected ParserTargetInfo(void* native, bool skipVTables = false)
{ {
if (native == null) if (native == null)
return; return;

980
src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/AST.cs

File diff suppressed because it is too large Load Diff

36
src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/CppParser.cs

@ -243,7 +243,7 @@ namespace CppSharp
public static ParserOptions __CreateInstance(global::System.IntPtr native, bool skipVTables = false) public static ParserOptions __CreateInstance(global::System.IntPtr native, bool skipVTables = false)
{ {
return new ParserOptions((ParserOptions.Internal*) native, skipVTables); return new ParserOptions(native.ToPointer(), skipVTables);
} }
public static ParserOptions __CreateInstance(ParserOptions.Internal native, bool skipVTables = false) public static ParserOptions __CreateInstance(ParserOptions.Internal native, bool skipVTables = false)
@ -251,11 +251,11 @@ namespace CppSharp
return new ParserOptions(native, skipVTables); return new ParserOptions(native, skipVTables);
} }
private static ParserOptions.Internal* __CopyValue(ParserOptions.Internal native) private static void* __CopyValue(ParserOptions.Internal native)
{ {
var ret = Marshal.AllocHGlobal(248); var ret = Marshal.AllocHGlobal(248);
CppSharp.Parser.ParserOptions.Internal.cctor_2(ret, new global::System.IntPtr(&native)); CppSharp.Parser.ParserOptions.Internal.cctor_2(ret, new global::System.IntPtr(&native));
return (ParserOptions.Internal*) ret; return ret.ToPointer();
} }
private ParserOptions(ParserOptions.Internal native, bool skipVTables = false) private ParserOptions(ParserOptions.Internal native, bool skipVTables = false)
@ -265,7 +265,7 @@ namespace CppSharp
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
} }
protected ParserOptions(ParserOptions.Internal* native, bool skipVTables = false) protected ParserOptions(void* native, bool skipVTables = false)
{ {
if (native == null) if (native == null)
return; return;
@ -687,7 +687,7 @@ namespace CppSharp
public static ParserDiagnostic __CreateInstance(global::System.IntPtr native, bool skipVTables = false) public static ParserDiagnostic __CreateInstance(global::System.IntPtr native, bool skipVTables = false)
{ {
return new ParserDiagnostic((ParserDiagnostic.Internal*) native, skipVTables); return new ParserDiagnostic(native.ToPointer(), skipVTables);
} }
public static ParserDiagnostic __CreateInstance(ParserDiagnostic.Internal native, bool skipVTables = false) public static ParserDiagnostic __CreateInstance(ParserDiagnostic.Internal native, bool skipVTables = false)
@ -695,11 +695,11 @@ namespace CppSharp
return new ParserDiagnostic(native, skipVTables); return new ParserDiagnostic(native, skipVTables);
} }
private static ParserDiagnostic.Internal* __CopyValue(ParserDiagnostic.Internal native) private static void* __CopyValue(ParserDiagnostic.Internal native)
{ {
var ret = Marshal.AllocHGlobal(80); var ret = Marshal.AllocHGlobal(80);
CppSharp.Parser.ParserDiagnostic.Internal.cctor_1(ret, new global::System.IntPtr(&native)); CppSharp.Parser.ParserDiagnostic.Internal.cctor_1(ret, new global::System.IntPtr(&native));
return (ParserDiagnostic.Internal*) ret; return ret.ToPointer();
} }
private ParserDiagnostic(ParserDiagnostic.Internal native, bool skipVTables = false) private ParserDiagnostic(ParserDiagnostic.Internal native, bool skipVTables = false)
@ -709,7 +709,7 @@ namespace CppSharp
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
} }
protected ParserDiagnostic(ParserDiagnostic.Internal* native, bool skipVTables = false) protected ParserDiagnostic(void* native, bool skipVTables = false)
{ {
if (native == null) if (native == null)
return; return;
@ -884,7 +884,7 @@ namespace CppSharp
public static ParserResult __CreateInstance(global::System.IntPtr native, bool skipVTables = false) public static ParserResult __CreateInstance(global::System.IntPtr native, bool skipVTables = false)
{ {
return new ParserResult((ParserResult.Internal*) native, skipVTables); return new ParserResult(native.ToPointer(), skipVTables);
} }
public static ParserResult __CreateInstance(ParserResult.Internal native, bool skipVTables = false) public static ParserResult __CreateInstance(ParserResult.Internal native, bool skipVTables = false)
@ -892,11 +892,11 @@ namespace CppSharp
return new ParserResult(native, skipVTables); return new ParserResult(native, skipVTables);
} }
private static ParserResult.Internal* __CopyValue(ParserResult.Internal native) private static void* __CopyValue(ParserResult.Internal native)
{ {
var ret = Marshal.AllocHGlobal(56); var ret = Marshal.AllocHGlobal(56);
CppSharp.Parser.ParserResult.Internal.cctor_1(ret, new global::System.IntPtr(&native)); CppSharp.Parser.ParserResult.Internal.cctor_1(ret, new global::System.IntPtr(&native));
return (ParserResult.Internal*) ret; return ret.ToPointer();
} }
private ParserResult(ParserResult.Internal native, bool skipVTables = false) private ParserResult(ParserResult.Internal native, bool skipVTables = false)
@ -906,7 +906,7 @@ namespace CppSharp
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
} }
protected ParserResult(ParserResult.Internal* native, bool skipVTables = false) protected ParserResult(void* native, bool skipVTables = false)
{ {
if (native == null) if (native == null)
return; return;
@ -1061,7 +1061,7 @@ namespace CppSharp
public static ClangParser __CreateInstance(global::System.IntPtr native, bool skipVTables = false) public static ClangParser __CreateInstance(global::System.IntPtr native, bool skipVTables = false)
{ {
return new ClangParser((ClangParser.Internal*) native, skipVTables); return new ClangParser(native.ToPointer(), skipVTables);
} }
public static ClangParser __CreateInstance(ClangParser.Internal native, bool skipVTables = false) public static ClangParser __CreateInstance(ClangParser.Internal native, bool skipVTables = false)
@ -1069,11 +1069,11 @@ namespace CppSharp
return new ClangParser(native, skipVTables); return new ClangParser(native, skipVTables);
} }
private static ClangParser.Internal* __CopyValue(ClangParser.Internal native) private static void* __CopyValue(ClangParser.Internal native)
{ {
var ret = (ClangParser.Internal*) Marshal.AllocHGlobal(0); var ret = Marshal.AllocHGlobal(0);
*ret = native; *(ClangParser.Internal*) ret = native;
return ret; return ret.ToPointer();
} }
private ClangParser(ClangParser.Internal native, bool skipVTables = false) private ClangParser(ClangParser.Internal native, bool skipVTables = false)
@ -1083,7 +1083,7 @@ namespace CppSharp
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
} }
protected ClangParser(ClangParser.Internal* native, bool skipVTables = false) protected ClangParser(void* native, bool skipVTables = false)
{ {
if (native == null) if (native == null)
return; return;

6
src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/Sources.cs

@ -39,7 +39,7 @@ namespace CppSharp
public static SourceLocation __CreateInstance(global::System.IntPtr native, bool skipVTables = false) public static SourceLocation __CreateInstance(global::System.IntPtr native, bool skipVTables = false)
{ {
return new SourceLocation((SourceLocation.Internal*) native, skipVTables); return new SourceLocation(native.ToPointer(), skipVTables);
} }
public static SourceLocation __CreateInstance(SourceLocation.Internal native, bool skipVTables = false) public static SourceLocation __CreateInstance(SourceLocation.Internal native, bool skipVTables = false)
@ -53,9 +53,9 @@ namespace CppSharp
__instance = native; __instance = native;
} }
private SourceLocation(SourceLocation.Internal* native, bool skipVTables = false) : this() private SourceLocation(void* native, bool skipVTables = false) : this()
{ {
__instance = *native; __instance = *(Internal*) native;
} }
public SourceLocation(uint ID) public SourceLocation(uint ID)

8
src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/Target.cs

@ -180,7 +180,7 @@ namespace CppSharp
public static ParserTargetInfo __CreateInstance(global::System.IntPtr native, bool skipVTables = false) public static ParserTargetInfo __CreateInstance(global::System.IntPtr native, bool skipVTables = false)
{ {
return new ParserTargetInfo((ParserTargetInfo.Internal*) native, skipVTables); return new ParserTargetInfo(native.ToPointer(), skipVTables);
} }
public static ParserTargetInfo __CreateInstance(ParserTargetInfo.Internal native, bool skipVTables = false) public static ParserTargetInfo __CreateInstance(ParserTargetInfo.Internal native, bool skipVTables = false)
@ -188,11 +188,11 @@ namespace CppSharp
return new ParserTargetInfo(native, skipVTables); return new ParserTargetInfo(native, skipVTables);
} }
private static ParserTargetInfo.Internal* __CopyValue(ParserTargetInfo.Internal native) private static void* __CopyValue(ParserTargetInfo.Internal native)
{ {
var ret = Marshal.AllocHGlobal(184); var ret = Marshal.AllocHGlobal(184);
CppSharp.Parser.ParserTargetInfo.Internal.cctor_1(ret, new global::System.IntPtr(&native)); CppSharp.Parser.ParserTargetInfo.Internal.cctor_1(ret, new global::System.IntPtr(&native));
return (ParserTargetInfo.Internal*) ret; return ret.ToPointer();
} }
private ParserTargetInfo(ParserTargetInfo.Internal native, bool skipVTables = false) private ParserTargetInfo(ParserTargetInfo.Internal native, bool skipVTables = false)
@ -202,7 +202,7 @@ namespace CppSharp
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
} }
protected ParserTargetInfo(ParserTargetInfo.Internal* native, bool skipVTables = false) protected ParserTargetInfo(void* native, bool skipVTables = false)
{ {
if (native == null) if (native == null)
return; return;

Loading…
Cancel
Save