Browse Source

Fixed the generated C# when a parameter is s typedef of a primitive pointer.

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
pull/719/head
Dimitar Dobrev 9 years ago
parent
commit
a8815b84e2
  1. 156
      src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/CppSharp.CppParser.cs
  2. 156
      src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/CppSharp.CppParser.cs
  3. 156
      src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/CppSharp.CppParser.cs
  4. 156
      src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/CppSharp.CppParser.cs
  5. 156
      src/CppParser/Bindings/CSharp/x86_64-linux-gnu/CppSharp.CppParser.cs
  6. 156
      src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/CppSharp.CppParser.cs
  7. 17
      src/Generator/Generators/CSharp/CSharpSources.cs
  8. 3
      src/Generator/Passes/MarshalPrimitivePointersAsRefTypePass.cs
  9. 2
      tests/CSharp/CSharp.cpp
  10. 3
      tests/CSharp/CSharp.h

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

@ -337,8 +337,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(8); __Instance = Marshal.AllocHGlobal(8);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = kind; __Internal.ctor_0((__Instance + __PointerAdjustment), kind);
__Internal.ctor_0((__Instance + __PointerAdjustment), __arg0);
} }
public Type(global::CppSharp.Parser.AST.Type _0) public Type(global::CppSharp.Parser.AST.Type _0)
@ -3601,8 +3600,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetName_0((__Instance + __PointerAdjustment), value);
__Internal.SetName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -4268,8 +4266,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(92); __Instance = Marshal.AllocHGlobal(92);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = kind; __Internal.ctor_0((__Instance + __PointerAdjustment), kind);
__Internal.ctor_0((__Instance + __PointerAdjustment), __arg0);
} }
public Declaration(global::CppSharp.Parser.AST.Declaration _0) public Declaration(global::CppSharp.Parser.AST.Declaration _0)
@ -4521,8 +4518,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetName_0((__Instance + __PointerAdjustment), value);
__Internal.SetName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -4536,8 +4532,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetUSR_0((__Instance + __PointerAdjustment), value);
__Internal.SetUSR_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -4551,8 +4546,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetDebugText_0((__Instance + __PointerAdjustment), value);
__Internal.SetDebugText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -4890,8 +4884,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(216); __Instance = Marshal.AllocHGlobal(216);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = kind; __Internal.ctor_0((__Instance + __PointerAdjustment), kind);
__Internal.ctor_0((__Instance + __PointerAdjustment), __arg0);
} }
public DeclarationContext(global::CppSharp.Parser.AST.DeclarationContext _0) public DeclarationContext(global::CppSharp.Parser.AST.DeclarationContext _0)
@ -5346,8 +5339,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(100); __Instance = Marshal.AllocHGlobal(100);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = kind; __Internal.ctor_0((__Instance + __PointerAdjustment), kind);
__Internal.ctor_0((__Instance + __PointerAdjustment), __arg0);
} }
public TypedefNameDecl(global::CppSharp.Parser.AST.TypedefNameDecl _0) public TypedefNameDecl(global::CppSharp.Parser.AST.TypedefNameDecl _0)
@ -5991,8 +5983,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetString_0((__Instance + __PointerAdjustment), value);
__Internal.SetString_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -6223,8 +6214,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetOpcodeStr_0((__Instance + __PointerAdjustment), value);
__Internal.SetOpcodeStr_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -7130,8 +7120,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetMangled_0((__Instance + __PointerAdjustment), value);
__Internal.SetMangled_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -7145,8 +7134,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetSignature_0((__Instance + __PointerAdjustment), value);
__Internal.SetSignature_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -7835,8 +7823,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetExpression_0((__Instance + __PointerAdjustment), value);
__Internal.SetExpression_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -8163,8 +8150,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetMangled_0((__Instance + __PointerAdjustment), value);
__Internal.SetMangled_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -9367,8 +9353,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(108); __Instance = Marshal.AllocHGlobal(108);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = kind; __Internal.ctor_0((__Instance + __PointerAdjustment), kind);
__Internal.ctor_0((__Instance + __PointerAdjustment), __arg0);
} }
public Template() public Template()
@ -9722,8 +9707,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(104); __Instance = Marshal.AllocHGlobal(104);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = kind; __Internal.ctor_0((__Instance + __PointerAdjustment), kind);
__Internal.ctor_0((__Instance + __PointerAdjustment), __arg0);
} }
public TemplateParameter(global::CppSharp.Parser.AST.TemplateParameter _0) public TemplateParameter(global::CppSharp.Parser.AST.TemplateParameter _0)
@ -12550,8 +12534,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetName_0((__Instance + __PointerAdjustment), value);
__Internal.SetName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -12565,8 +12548,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetExpression_0((__Instance + __PointerAdjustment), value);
__Internal.SetExpression_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -12722,8 +12704,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetName_0((__Instance + __PointerAdjustment), value);
__Internal.SetName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -12737,8 +12718,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetText_0((__Instance + __PointerAdjustment), value);
__Internal.SetText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -13001,8 +12981,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetFileName_0((__Instance + __PointerAdjustment), value);
__Internal.SetFileName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -13180,8 +13159,7 @@ namespace CppSharp
public void AddSymbols(string s) public void AddSymbols(string s)
{ {
var __arg0 = s; __Internal.AddSymbols_0((__Instance + __PointerAdjustment), s);
__Internal.AddSymbols_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearSymbols() public void ClearSymbols()
@ -13197,8 +13175,7 @@ namespace CppSharp
public void AddDependencies(string s) public void AddDependencies(string s)
{ {
var __arg0 = s; __Internal.AddDependencies_0((__Instance + __PointerAdjustment), s);
__Internal.AddDependencies_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearDependencies() public void ClearDependencies()
@ -13229,8 +13206,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetFileName_0((__Instance + __PointerAdjustment), value);
__Internal.SetFileName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -13467,8 +13443,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(4); __Instance = Marshal.AllocHGlobal(4);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = kind; __Internal.ctor_0((__Instance + __PointerAdjustment), kind);
__Internal.ctor_0((__Instance + __PointerAdjustment), __arg0);
} }
public Comment(global::CppSharp.Parser.AST.Comment _0) public Comment(global::CppSharp.Parser.AST.Comment _0)
@ -13583,8 +13558,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(4); __Instance = Marshal.AllocHGlobal(4);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = Kind; __Internal.ctor_1((__Instance + __PointerAdjustment), Kind);
__Internal.ctor_1((__Instance + __PointerAdjustment), __arg0);
} }
public BlockContentComment(global::CppSharp.Parser.AST.BlockContentComment _0) public BlockContentComment(global::CppSharp.Parser.AST.BlockContentComment _0)
@ -13822,8 +13796,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(8); __Instance = Marshal.AllocHGlobal(8);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = Kind; __Internal.ctor_1((__Instance + __PointerAdjustment), Kind);
__Internal.ctor_1((__Instance + __PointerAdjustment), __arg0);
} }
public InlineContentComment(global::CppSharp.Parser.AST.InlineContentComment _0) public InlineContentComment(global::CppSharp.Parser.AST.InlineContentComment _0)
@ -14190,8 +14163,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetText_0((__Instance + __PointerAdjustment), value);
__Internal.SetText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -14244,8 +14216,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(24); __Instance = Marshal.AllocHGlobal(24);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = Kind; __Internal.ctor_1((__Instance + __PointerAdjustment), Kind);
__Internal.ctor_1((__Instance + __PointerAdjustment), __arg0);
} }
public BlockCommandComment(global::CppSharp.Parser.AST.BlockCommandComment _0) public BlockCommandComment(global::CppSharp.Parser.AST.BlockCommandComment _0)
@ -14734,8 +14705,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetText_0((__Instance + __PointerAdjustment), value);
__Internal.SetText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -15014,8 +14984,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetText_0((__Instance + __PointerAdjustment), value);
__Internal.SetText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -15201,8 +15170,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetText_0((__Instance + __PointerAdjustment), value);
__Internal.SetText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -15402,8 +15370,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(8); __Instance = Marshal.AllocHGlobal(8);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = Kind; __Internal.ctor_1((__Instance + __PointerAdjustment), Kind);
__Internal.ctor_1((__Instance + __PointerAdjustment), __arg0);
} }
public HTMLTagComment(global::CppSharp.Parser.AST.HTMLTagComment _0) public HTMLTagComment(global::CppSharp.Parser.AST.HTMLTagComment _0)
@ -15614,8 +15581,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetName_0((__Instance + __PointerAdjustment), value);
__Internal.SetName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -15629,8 +15595,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetValue_0((__Instance + __PointerAdjustment), value);
__Internal.SetValue_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -15729,8 +15694,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetTagName_0((__Instance + __PointerAdjustment), value);
__Internal.SetTagName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -15858,8 +15822,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetTagName_0((__Instance + __PointerAdjustment), value);
__Internal.SetTagName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -15978,8 +15941,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetText_0((__Instance + __PointerAdjustment), value);
__Internal.SetText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -16151,8 +16113,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetText_0((__Instance + __PointerAdjustment), value);
__Internal.SetText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -16166,8 +16127,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetBriefText_0((__Instance + __PointerAdjustment), value);
__Internal.SetBriefText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -17012,8 +16972,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetABI_0((__Instance + __PointerAdjustment), value);
__Internal.SetABI_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -17381,8 +17340,7 @@ namespace CppSharp
public void AddArguments(string s) public void AddArguments(string s)
{ {
var __arg0 = s; __Internal.AddArguments_0((__Instance + __PointerAdjustment), s);
__Internal.AddArguments_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearArguments() public void ClearArguments()
@ -17398,8 +17356,7 @@ namespace CppSharp
public void AddSourceFiles(string s) public void AddSourceFiles(string s)
{ {
var __arg0 = s; __Internal.AddSourceFiles_0((__Instance + __PointerAdjustment), s);
__Internal.AddSourceFiles_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearSourceFiles() public void ClearSourceFiles()
@ -17415,8 +17372,7 @@ namespace CppSharp
public void AddIncludeDirs(string s) public void AddIncludeDirs(string s)
{ {
var __arg0 = s; __Internal.AddIncludeDirs_0((__Instance + __PointerAdjustment), s);
__Internal.AddIncludeDirs_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearIncludeDirs() public void ClearIncludeDirs()
@ -17432,8 +17388,7 @@ namespace CppSharp
public void AddSystemIncludeDirs(string s) public void AddSystemIncludeDirs(string s)
{ {
var __arg0 = s; __Internal.AddSystemIncludeDirs_0((__Instance + __PointerAdjustment), s);
__Internal.AddSystemIncludeDirs_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearSystemIncludeDirs() public void ClearSystemIncludeDirs()
@ -17449,8 +17404,7 @@ namespace CppSharp
public void AddDefines(string s) public void AddDefines(string s)
{ {
var __arg0 = s; __Internal.AddDefines_0((__Instance + __PointerAdjustment), s);
__Internal.AddDefines_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearDefines() public void ClearDefines()
@ -17466,8 +17420,7 @@ namespace CppSharp
public void AddUndefines(string s) public void AddUndefines(string s)
{ {
var __arg0 = s; __Internal.AddUndefines_0((__Instance + __PointerAdjustment), s);
__Internal.AddUndefines_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearUndefines() public void ClearUndefines()
@ -17483,8 +17436,7 @@ namespace CppSharp
public void AddLibraryDirs(string s) public void AddLibraryDirs(string s)
{ {
var __arg0 = s; __Internal.AddLibraryDirs_0((__Instance + __PointerAdjustment), s);
__Internal.AddLibraryDirs_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearLibraryDirs() public void ClearLibraryDirs()
@ -17629,8 +17581,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetLibraryFile_0((__Instance + __PointerAdjustment), value);
__Internal.SetLibraryFile_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -17644,8 +17595,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetTargetTriple_0((__Instance + __PointerAdjustment), value);
__Internal.SetTargetTriple_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -17891,8 +17841,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetFileName_0((__Instance + __PointerAdjustment), value);
__Internal.SetFileName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -17906,8 +17855,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetMessage_0((__Instance + __PointerAdjustment), value);
__Internal.SetMessage_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }

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

@ -337,8 +337,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(8); __Instance = Marshal.AllocHGlobal(8);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = kind; __Internal.ctor_0((__Instance + __PointerAdjustment), kind);
__Internal.ctor_0((__Instance + __PointerAdjustment), __arg0);
} }
public Type(global::CppSharp.Parser.AST.Type _0) public Type(global::CppSharp.Parser.AST.Type _0)
@ -3601,8 +3600,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetName_0((__Instance + __PointerAdjustment), value);
__Internal.SetName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -4268,8 +4266,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(128); __Instance = Marshal.AllocHGlobal(128);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = kind; __Internal.ctor_0((__Instance + __PointerAdjustment), kind);
__Internal.ctor_0((__Instance + __PointerAdjustment), __arg0);
} }
public Declaration(global::CppSharp.Parser.AST.Declaration _0) public Declaration(global::CppSharp.Parser.AST.Declaration _0)
@ -4521,8 +4518,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetName_0((__Instance + __PointerAdjustment), value);
__Internal.SetName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -4536,8 +4532,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetUSR_0((__Instance + __PointerAdjustment), value);
__Internal.SetUSR_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -4551,8 +4546,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetDebugText_0((__Instance + __PointerAdjustment), value);
__Internal.SetDebugText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -4890,8 +4884,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(248); __Instance = Marshal.AllocHGlobal(248);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = kind; __Internal.ctor_0((__Instance + __PointerAdjustment), kind);
__Internal.ctor_0((__Instance + __PointerAdjustment), __arg0);
} }
public DeclarationContext(global::CppSharp.Parser.AST.DeclarationContext _0) public DeclarationContext(global::CppSharp.Parser.AST.DeclarationContext _0)
@ -5346,8 +5339,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(136); __Instance = Marshal.AllocHGlobal(136);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = kind; __Internal.ctor_0((__Instance + __PointerAdjustment), kind);
__Internal.ctor_0((__Instance + __PointerAdjustment), __arg0);
} }
public TypedefNameDecl(global::CppSharp.Parser.AST.TypedefNameDecl _0) public TypedefNameDecl(global::CppSharp.Parser.AST.TypedefNameDecl _0)
@ -5991,8 +5983,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetString_0((__Instance + __PointerAdjustment), value);
__Internal.SetString_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -6223,8 +6214,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetOpcodeStr_0((__Instance + __PointerAdjustment), value);
__Internal.SetOpcodeStr_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -7130,8 +7120,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetMangled_0((__Instance + __PointerAdjustment), value);
__Internal.SetMangled_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -7145,8 +7134,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetSignature_0((__Instance + __PointerAdjustment), value);
__Internal.SetSignature_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -7835,8 +7823,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetExpression_0((__Instance + __PointerAdjustment), value);
__Internal.SetExpression_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -8163,8 +8150,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetMangled_0((__Instance + __PointerAdjustment), value);
__Internal.SetMangled_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -9367,8 +9353,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(144); __Instance = Marshal.AllocHGlobal(144);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = kind; __Internal.ctor_0((__Instance + __PointerAdjustment), kind);
__Internal.ctor_0((__Instance + __PointerAdjustment), __arg0);
} }
public Template() public Template()
@ -9722,8 +9707,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(140); __Instance = Marshal.AllocHGlobal(140);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = kind; __Internal.ctor_0((__Instance + __PointerAdjustment), kind);
__Internal.ctor_0((__Instance + __PointerAdjustment), __arg0);
} }
public TemplateParameter(global::CppSharp.Parser.AST.TemplateParameter _0) public TemplateParameter(global::CppSharp.Parser.AST.TemplateParameter _0)
@ -12550,8 +12534,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetName_0((__Instance + __PointerAdjustment), value);
__Internal.SetName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -12565,8 +12548,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetExpression_0((__Instance + __PointerAdjustment), value);
__Internal.SetExpression_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -12722,8 +12704,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetName_0((__Instance + __PointerAdjustment), value);
__Internal.SetName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -12737,8 +12718,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetText_0((__Instance + __PointerAdjustment), value);
__Internal.SetText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -13001,8 +12981,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetFileName_0((__Instance + __PointerAdjustment), value);
__Internal.SetFileName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -13180,8 +13159,7 @@ namespace CppSharp
public void AddSymbols(string s) public void AddSymbols(string s)
{ {
var __arg0 = s; __Internal.AddSymbols_0((__Instance + __PointerAdjustment), s);
__Internal.AddSymbols_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearSymbols() public void ClearSymbols()
@ -13197,8 +13175,7 @@ namespace CppSharp
public void AddDependencies(string s) public void AddDependencies(string s)
{ {
var __arg0 = s; __Internal.AddDependencies_0((__Instance + __PointerAdjustment), s);
__Internal.AddDependencies_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearDependencies() public void ClearDependencies()
@ -13229,8 +13206,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetFileName_0((__Instance + __PointerAdjustment), value);
__Internal.SetFileName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -13467,8 +13443,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(4); __Instance = Marshal.AllocHGlobal(4);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = kind; __Internal.ctor_0((__Instance + __PointerAdjustment), kind);
__Internal.ctor_0((__Instance + __PointerAdjustment), __arg0);
} }
public Comment(global::CppSharp.Parser.AST.Comment _0) public Comment(global::CppSharp.Parser.AST.Comment _0)
@ -13583,8 +13558,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(4); __Instance = Marshal.AllocHGlobal(4);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = Kind; __Internal.ctor_1((__Instance + __PointerAdjustment), Kind);
__Internal.ctor_1((__Instance + __PointerAdjustment), __arg0);
} }
public BlockContentComment(global::CppSharp.Parser.AST.BlockContentComment _0) public BlockContentComment(global::CppSharp.Parser.AST.BlockContentComment _0)
@ -13822,8 +13796,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(8); __Instance = Marshal.AllocHGlobal(8);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = Kind; __Internal.ctor_1((__Instance + __PointerAdjustment), Kind);
__Internal.ctor_1((__Instance + __PointerAdjustment), __arg0);
} }
public InlineContentComment(global::CppSharp.Parser.AST.InlineContentComment _0) public InlineContentComment(global::CppSharp.Parser.AST.InlineContentComment _0)
@ -14190,8 +14163,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetText_0((__Instance + __PointerAdjustment), value);
__Internal.SetText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -14244,8 +14216,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(24); __Instance = Marshal.AllocHGlobal(24);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = Kind; __Internal.ctor_1((__Instance + __PointerAdjustment), Kind);
__Internal.ctor_1((__Instance + __PointerAdjustment), __arg0);
} }
public BlockCommandComment(global::CppSharp.Parser.AST.BlockCommandComment _0) public BlockCommandComment(global::CppSharp.Parser.AST.BlockCommandComment _0)
@ -14734,8 +14705,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetText_0((__Instance + __PointerAdjustment), value);
__Internal.SetText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -15014,8 +14984,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetText_0((__Instance + __PointerAdjustment), value);
__Internal.SetText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -15201,8 +15170,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetText_0((__Instance + __PointerAdjustment), value);
__Internal.SetText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -15402,8 +15370,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(8); __Instance = Marshal.AllocHGlobal(8);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = Kind; __Internal.ctor_1((__Instance + __PointerAdjustment), Kind);
__Internal.ctor_1((__Instance + __PointerAdjustment), __arg0);
} }
public HTMLTagComment(global::CppSharp.Parser.AST.HTMLTagComment _0) public HTMLTagComment(global::CppSharp.Parser.AST.HTMLTagComment _0)
@ -15614,8 +15581,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetName_0((__Instance + __PointerAdjustment), value);
__Internal.SetName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -15629,8 +15595,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetValue_0((__Instance + __PointerAdjustment), value);
__Internal.SetValue_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -15729,8 +15694,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetTagName_0((__Instance + __PointerAdjustment), value);
__Internal.SetTagName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -15858,8 +15822,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetTagName_0((__Instance + __PointerAdjustment), value);
__Internal.SetTagName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -15978,8 +15941,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetText_0((__Instance + __PointerAdjustment), value);
__Internal.SetText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -16151,8 +16113,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetText_0((__Instance + __PointerAdjustment), value);
__Internal.SetText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -16166,8 +16127,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetBriefText_0((__Instance + __PointerAdjustment), value);
__Internal.SetBriefText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -17012,8 +16972,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetABI_0((__Instance + __PointerAdjustment), value);
__Internal.SetABI_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -17381,8 +17340,7 @@ namespace CppSharp
public void AddArguments(string s) public void AddArguments(string s)
{ {
var __arg0 = s; __Internal.AddArguments_0((__Instance + __PointerAdjustment), s);
__Internal.AddArguments_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearArguments() public void ClearArguments()
@ -17398,8 +17356,7 @@ namespace CppSharp
public void AddSourceFiles(string s) public void AddSourceFiles(string s)
{ {
var __arg0 = s; __Internal.AddSourceFiles_0((__Instance + __PointerAdjustment), s);
__Internal.AddSourceFiles_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearSourceFiles() public void ClearSourceFiles()
@ -17415,8 +17372,7 @@ namespace CppSharp
public void AddIncludeDirs(string s) public void AddIncludeDirs(string s)
{ {
var __arg0 = s; __Internal.AddIncludeDirs_0((__Instance + __PointerAdjustment), s);
__Internal.AddIncludeDirs_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearIncludeDirs() public void ClearIncludeDirs()
@ -17432,8 +17388,7 @@ namespace CppSharp
public void AddSystemIncludeDirs(string s) public void AddSystemIncludeDirs(string s)
{ {
var __arg0 = s; __Internal.AddSystemIncludeDirs_0((__Instance + __PointerAdjustment), s);
__Internal.AddSystemIncludeDirs_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearSystemIncludeDirs() public void ClearSystemIncludeDirs()
@ -17449,8 +17404,7 @@ namespace CppSharp
public void AddDefines(string s) public void AddDefines(string s)
{ {
var __arg0 = s; __Internal.AddDefines_0((__Instance + __PointerAdjustment), s);
__Internal.AddDefines_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearDefines() public void ClearDefines()
@ -17466,8 +17420,7 @@ namespace CppSharp
public void AddUndefines(string s) public void AddUndefines(string s)
{ {
var __arg0 = s; __Internal.AddUndefines_0((__Instance + __PointerAdjustment), s);
__Internal.AddUndefines_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearUndefines() public void ClearUndefines()
@ -17483,8 +17436,7 @@ namespace CppSharp
public void AddLibraryDirs(string s) public void AddLibraryDirs(string s)
{ {
var __arg0 = s; __Internal.AddLibraryDirs_0((__Instance + __PointerAdjustment), s);
__Internal.AddLibraryDirs_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearLibraryDirs() public void ClearLibraryDirs()
@ -17629,8 +17581,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetLibraryFile_0((__Instance + __PointerAdjustment), value);
__Internal.SetLibraryFile_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -17644,8 +17595,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetTargetTriple_0((__Instance + __PointerAdjustment), value);
__Internal.SetTargetTriple_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -17891,8 +17841,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetFileName_0((__Instance + __PointerAdjustment), value);
__Internal.SetFileName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -17906,8 +17855,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetMessage_0((__Instance + __PointerAdjustment), value);
__Internal.SetMessage_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }

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

@ -337,8 +337,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(8); __Instance = Marshal.AllocHGlobal(8);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = kind; __Internal.ctor_0((__Instance + __PointerAdjustment), kind);
__Internal.ctor_0((__Instance + __PointerAdjustment), __arg0);
} }
public Type(global::CppSharp.Parser.AST.Type _0) public Type(global::CppSharp.Parser.AST.Type _0)
@ -3600,8 +3599,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetName_0((__Instance + __PointerAdjustment), value);
__Internal.SetName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -4267,8 +4265,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(168); __Instance = Marshal.AllocHGlobal(168);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = kind; __Internal.ctor_0((__Instance + __PointerAdjustment), kind);
__Internal.ctor_0((__Instance + __PointerAdjustment), __arg0);
} }
public Declaration(global::CppSharp.Parser.AST.Declaration _0) public Declaration(global::CppSharp.Parser.AST.Declaration _0)
@ -4520,8 +4517,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetName_0((__Instance + __PointerAdjustment), value);
__Internal.SetName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -4535,8 +4531,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetUSR_0((__Instance + __PointerAdjustment), value);
__Internal.SetUSR_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -4550,8 +4545,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetDebugText_0((__Instance + __PointerAdjustment), value);
__Internal.SetDebugText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -4889,8 +4883,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(416); __Instance = Marshal.AllocHGlobal(416);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = kind; __Internal.ctor_0((__Instance + __PointerAdjustment), kind);
__Internal.ctor_0((__Instance + __PointerAdjustment), __arg0);
} }
public DeclarationContext(global::CppSharp.Parser.AST.DeclarationContext _0) public DeclarationContext(global::CppSharp.Parser.AST.DeclarationContext _0)
@ -5345,8 +5338,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(184); __Instance = Marshal.AllocHGlobal(184);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = kind; __Internal.ctor_0((__Instance + __PointerAdjustment), kind);
__Internal.ctor_0((__Instance + __PointerAdjustment), __arg0);
} }
public TypedefNameDecl(global::CppSharp.Parser.AST.TypedefNameDecl _0) public TypedefNameDecl(global::CppSharp.Parser.AST.TypedefNameDecl _0)
@ -5990,8 +5982,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetString_0((__Instance + __PointerAdjustment), value);
__Internal.SetString_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -6222,8 +6213,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetOpcodeStr_0((__Instance + __PointerAdjustment), value);
__Internal.SetOpcodeStr_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -7129,8 +7119,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetMangled_0((__Instance + __PointerAdjustment), value);
__Internal.SetMangled_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -7144,8 +7133,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetSignature_0((__Instance + __PointerAdjustment), value);
__Internal.SetSignature_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -7834,8 +7822,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetExpression_0((__Instance + __PointerAdjustment), value);
__Internal.SetExpression_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -8162,8 +8149,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetMangled_0((__Instance + __PointerAdjustment), value);
__Internal.SetMangled_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -9366,8 +9352,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(200); __Instance = Marshal.AllocHGlobal(200);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = kind; __Internal.ctor_0((__Instance + __PointerAdjustment), kind);
__Internal.ctor_0((__Instance + __PointerAdjustment), __arg0);
} }
public Template() public Template()
@ -9721,8 +9706,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(184); __Instance = Marshal.AllocHGlobal(184);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = kind; __Internal.ctor_0((__Instance + __PointerAdjustment), kind);
__Internal.ctor_0((__Instance + __PointerAdjustment), __arg0);
} }
public TemplateParameter(global::CppSharp.Parser.AST.TemplateParameter _0) public TemplateParameter(global::CppSharp.Parser.AST.TemplateParameter _0)
@ -12549,8 +12533,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetName_0((__Instance + __PointerAdjustment), value);
__Internal.SetName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -12564,8 +12547,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetExpression_0((__Instance + __PointerAdjustment), value);
__Internal.SetExpression_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -12721,8 +12703,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetName_0((__Instance + __PointerAdjustment), value);
__Internal.SetName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -12736,8 +12717,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetText_0((__Instance + __PointerAdjustment), value);
__Internal.SetText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -13000,8 +12980,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetFileName_0((__Instance + __PointerAdjustment), value);
__Internal.SetFileName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -13179,8 +13158,7 @@ namespace CppSharp
public void AddSymbols(string s) public void AddSymbols(string s)
{ {
var __arg0 = s; __Internal.AddSymbols_0((__Instance + __PointerAdjustment), s);
__Internal.AddSymbols_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearSymbols() public void ClearSymbols()
@ -13196,8 +13174,7 @@ namespace CppSharp
public void AddDependencies(string s) public void AddDependencies(string s)
{ {
var __arg0 = s; __Internal.AddDependencies_0((__Instance + __PointerAdjustment), s);
__Internal.AddDependencies_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearDependencies() public void ClearDependencies()
@ -13228,8 +13205,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetFileName_0((__Instance + __PointerAdjustment), value);
__Internal.SetFileName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -13466,8 +13442,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(4); __Instance = Marshal.AllocHGlobal(4);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = kind; __Internal.ctor_0((__Instance + __PointerAdjustment), kind);
__Internal.ctor_0((__Instance + __PointerAdjustment), __arg0);
} }
public Comment(global::CppSharp.Parser.AST.Comment _0) public Comment(global::CppSharp.Parser.AST.Comment _0)
@ -13582,8 +13557,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(4); __Instance = Marshal.AllocHGlobal(4);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = Kind; __Internal.ctor_1((__Instance + __PointerAdjustment), Kind);
__Internal.ctor_1((__Instance + __PointerAdjustment), __arg0);
} }
public BlockContentComment(global::CppSharp.Parser.AST.BlockContentComment _0) public BlockContentComment(global::CppSharp.Parser.AST.BlockContentComment _0)
@ -13821,8 +13795,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(8); __Instance = Marshal.AllocHGlobal(8);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = Kind; __Internal.ctor_1((__Instance + __PointerAdjustment), Kind);
__Internal.ctor_1((__Instance + __PointerAdjustment), __arg0);
} }
public InlineContentComment(global::CppSharp.Parser.AST.InlineContentComment _0) public InlineContentComment(global::CppSharp.Parser.AST.InlineContentComment _0)
@ -14189,8 +14162,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetText_0((__Instance + __PointerAdjustment), value);
__Internal.SetText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -14243,8 +14215,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(40); __Instance = Marshal.AllocHGlobal(40);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = Kind; __Internal.ctor_1((__Instance + __PointerAdjustment), Kind);
__Internal.ctor_1((__Instance + __PointerAdjustment), __arg0);
} }
public BlockCommandComment(global::CppSharp.Parser.AST.BlockCommandComment _0) public BlockCommandComment(global::CppSharp.Parser.AST.BlockCommandComment _0)
@ -14733,8 +14704,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetText_0((__Instance + __PointerAdjustment), value);
__Internal.SetText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -15013,8 +14983,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetText_0((__Instance + __PointerAdjustment), value);
__Internal.SetText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -15200,8 +15169,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetText_0((__Instance + __PointerAdjustment), value);
__Internal.SetText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -15401,8 +15369,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(8); __Instance = Marshal.AllocHGlobal(8);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = Kind; __Internal.ctor_1((__Instance + __PointerAdjustment), Kind);
__Internal.ctor_1((__Instance + __PointerAdjustment), __arg0);
} }
public HTMLTagComment(global::CppSharp.Parser.AST.HTMLTagComment _0) public HTMLTagComment(global::CppSharp.Parser.AST.HTMLTagComment _0)
@ -15613,8 +15580,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetName_0((__Instance + __PointerAdjustment), value);
__Internal.SetName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -15628,8 +15594,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetValue_0((__Instance + __PointerAdjustment), value);
__Internal.SetValue_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -15728,8 +15693,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetTagName_0((__Instance + __PointerAdjustment), value);
__Internal.SetTagName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -15857,8 +15821,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetTagName_0((__Instance + __PointerAdjustment), value);
__Internal.SetTagName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -15977,8 +15940,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetText_0((__Instance + __PointerAdjustment), value);
__Internal.SetText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -16150,8 +16112,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetText_0((__Instance + __PointerAdjustment), value);
__Internal.SetText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -16165,8 +16126,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetBriefText_0((__Instance + __PointerAdjustment), value);
__Internal.SetBriefText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -17011,8 +16971,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetABI_0((__Instance + __PointerAdjustment), value);
__Internal.SetABI_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -17380,8 +17339,7 @@ namespace CppSharp
public void AddArguments(string s) public void AddArguments(string s)
{ {
var __arg0 = s; __Internal.AddArguments_0((__Instance + __PointerAdjustment), s);
__Internal.AddArguments_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearArguments() public void ClearArguments()
@ -17397,8 +17355,7 @@ namespace CppSharp
public void AddSourceFiles(string s) public void AddSourceFiles(string s)
{ {
var __arg0 = s; __Internal.AddSourceFiles_0((__Instance + __PointerAdjustment), s);
__Internal.AddSourceFiles_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearSourceFiles() public void ClearSourceFiles()
@ -17414,8 +17371,7 @@ namespace CppSharp
public void AddIncludeDirs(string s) public void AddIncludeDirs(string s)
{ {
var __arg0 = s; __Internal.AddIncludeDirs_0((__Instance + __PointerAdjustment), s);
__Internal.AddIncludeDirs_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearIncludeDirs() public void ClearIncludeDirs()
@ -17431,8 +17387,7 @@ namespace CppSharp
public void AddSystemIncludeDirs(string s) public void AddSystemIncludeDirs(string s)
{ {
var __arg0 = s; __Internal.AddSystemIncludeDirs_0((__Instance + __PointerAdjustment), s);
__Internal.AddSystemIncludeDirs_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearSystemIncludeDirs() public void ClearSystemIncludeDirs()
@ -17448,8 +17403,7 @@ namespace CppSharp
public void AddDefines(string s) public void AddDefines(string s)
{ {
var __arg0 = s; __Internal.AddDefines_0((__Instance + __PointerAdjustment), s);
__Internal.AddDefines_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearDefines() public void ClearDefines()
@ -17465,8 +17419,7 @@ namespace CppSharp
public void AddUndefines(string s) public void AddUndefines(string s)
{ {
var __arg0 = s; __Internal.AddUndefines_0((__Instance + __PointerAdjustment), s);
__Internal.AddUndefines_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearUndefines() public void ClearUndefines()
@ -17482,8 +17435,7 @@ namespace CppSharp
public void AddLibraryDirs(string s) public void AddLibraryDirs(string s)
{ {
var __arg0 = s; __Internal.AddLibraryDirs_0((__Instance + __PointerAdjustment), s);
__Internal.AddLibraryDirs_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearLibraryDirs() public void ClearLibraryDirs()
@ -17628,8 +17580,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetLibraryFile_0((__Instance + __PointerAdjustment), value);
__Internal.SetLibraryFile_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -17643,8 +17594,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetTargetTriple_0((__Instance + __PointerAdjustment), value);
__Internal.SetTargetTriple_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -17890,8 +17840,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetFileName_0((__Instance + __PointerAdjustment), value);
__Internal.SetFileName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -17905,8 +17854,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetMessage_0((__Instance + __PointerAdjustment), value);
__Internal.SetMessage_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }

156
src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/CppSharp.CppParser.cs

@ -337,8 +337,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(8); __Instance = Marshal.AllocHGlobal(8);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = kind; __Internal.ctor_0((__Instance + __PointerAdjustment), kind);
__Internal.ctor_0((__Instance + __PointerAdjustment), __arg0);
} }
public Type(global::CppSharp.Parser.AST.Type _0) public Type(global::CppSharp.Parser.AST.Type _0)
@ -3600,8 +3599,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetName_0((__Instance + __PointerAdjustment), value);
__Internal.SetName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -4267,8 +4265,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(192); __Instance = Marshal.AllocHGlobal(192);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = kind; __Internal.ctor_0((__Instance + __PointerAdjustment), kind);
__Internal.ctor_0((__Instance + __PointerAdjustment), __arg0);
} }
public Declaration(global::CppSharp.Parser.AST.Declaration _0) public Declaration(global::CppSharp.Parser.AST.Declaration _0)
@ -4520,8 +4517,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetName_0((__Instance + __PointerAdjustment), value);
__Internal.SetName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -4535,8 +4531,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetUSR_0((__Instance + __PointerAdjustment), value);
__Internal.SetUSR_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -4550,8 +4545,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetDebugText_0((__Instance + __PointerAdjustment), value);
__Internal.SetDebugText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -4889,8 +4883,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(464); __Instance = Marshal.AllocHGlobal(464);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = kind; __Internal.ctor_0((__Instance + __PointerAdjustment), kind);
__Internal.ctor_0((__Instance + __PointerAdjustment), __arg0);
} }
public DeclarationContext(global::CppSharp.Parser.AST.DeclarationContext _0) public DeclarationContext(global::CppSharp.Parser.AST.DeclarationContext _0)
@ -5345,8 +5338,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(208); __Instance = Marshal.AllocHGlobal(208);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = kind; __Internal.ctor_0((__Instance + __PointerAdjustment), kind);
__Internal.ctor_0((__Instance + __PointerAdjustment), __arg0);
} }
public TypedefNameDecl(global::CppSharp.Parser.AST.TypedefNameDecl _0) public TypedefNameDecl(global::CppSharp.Parser.AST.TypedefNameDecl _0)
@ -5990,8 +5982,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetString_0((__Instance + __PointerAdjustment), value);
__Internal.SetString_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -6222,8 +6213,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetOpcodeStr_0((__Instance + __PointerAdjustment), value);
__Internal.SetOpcodeStr_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -7129,8 +7119,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetMangled_0((__Instance + __PointerAdjustment), value);
__Internal.SetMangled_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -7144,8 +7133,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetSignature_0((__Instance + __PointerAdjustment), value);
__Internal.SetSignature_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -7834,8 +7822,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetExpression_0((__Instance + __PointerAdjustment), value);
__Internal.SetExpression_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -8162,8 +8149,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetMangled_0((__Instance + __PointerAdjustment), value);
__Internal.SetMangled_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -9366,8 +9352,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(224); __Instance = Marshal.AllocHGlobal(224);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = kind; __Internal.ctor_0((__Instance + __PointerAdjustment), kind);
__Internal.ctor_0((__Instance + __PointerAdjustment), __arg0);
} }
public Template() public Template()
@ -9721,8 +9706,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(208); __Instance = Marshal.AllocHGlobal(208);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = kind; __Internal.ctor_0((__Instance + __PointerAdjustment), kind);
__Internal.ctor_0((__Instance + __PointerAdjustment), __arg0);
} }
public TemplateParameter(global::CppSharp.Parser.AST.TemplateParameter _0) public TemplateParameter(global::CppSharp.Parser.AST.TemplateParameter _0)
@ -12549,8 +12533,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetName_0((__Instance + __PointerAdjustment), value);
__Internal.SetName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -12564,8 +12547,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetExpression_0((__Instance + __PointerAdjustment), value);
__Internal.SetExpression_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -12721,8 +12703,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetName_0((__Instance + __PointerAdjustment), value);
__Internal.SetName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -12736,8 +12717,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetText_0((__Instance + __PointerAdjustment), value);
__Internal.SetText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -13000,8 +12980,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetFileName_0((__Instance + __PointerAdjustment), value);
__Internal.SetFileName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -13179,8 +13158,7 @@ namespace CppSharp
public void AddSymbols(string s) public void AddSymbols(string s)
{ {
var __arg0 = s; __Internal.AddSymbols_0((__Instance + __PointerAdjustment), s);
__Internal.AddSymbols_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearSymbols() public void ClearSymbols()
@ -13196,8 +13174,7 @@ namespace CppSharp
public void AddDependencies(string s) public void AddDependencies(string s)
{ {
var __arg0 = s; __Internal.AddDependencies_0((__Instance + __PointerAdjustment), s);
__Internal.AddDependencies_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearDependencies() public void ClearDependencies()
@ -13228,8 +13205,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetFileName_0((__Instance + __PointerAdjustment), value);
__Internal.SetFileName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -13466,8 +13442,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(4); __Instance = Marshal.AllocHGlobal(4);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = kind; __Internal.ctor_0((__Instance + __PointerAdjustment), kind);
__Internal.ctor_0((__Instance + __PointerAdjustment), __arg0);
} }
public Comment(global::CppSharp.Parser.AST.Comment _0) public Comment(global::CppSharp.Parser.AST.Comment _0)
@ -13582,8 +13557,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(4); __Instance = Marshal.AllocHGlobal(4);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = Kind; __Internal.ctor_1((__Instance + __PointerAdjustment), Kind);
__Internal.ctor_1((__Instance + __PointerAdjustment), __arg0);
} }
public BlockContentComment(global::CppSharp.Parser.AST.BlockContentComment _0) public BlockContentComment(global::CppSharp.Parser.AST.BlockContentComment _0)
@ -13821,8 +13795,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(8); __Instance = Marshal.AllocHGlobal(8);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = Kind; __Internal.ctor_1((__Instance + __PointerAdjustment), Kind);
__Internal.ctor_1((__Instance + __PointerAdjustment), __arg0);
} }
public InlineContentComment(global::CppSharp.Parser.AST.InlineContentComment _0) public InlineContentComment(global::CppSharp.Parser.AST.InlineContentComment _0)
@ -14189,8 +14162,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetText_0((__Instance + __PointerAdjustment), value);
__Internal.SetText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -14243,8 +14215,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(40); __Instance = Marshal.AllocHGlobal(40);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = Kind; __Internal.ctor_1((__Instance + __PointerAdjustment), Kind);
__Internal.ctor_1((__Instance + __PointerAdjustment), __arg0);
} }
public BlockCommandComment(global::CppSharp.Parser.AST.BlockCommandComment _0) public BlockCommandComment(global::CppSharp.Parser.AST.BlockCommandComment _0)
@ -14733,8 +14704,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetText_0((__Instance + __PointerAdjustment), value);
__Internal.SetText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -15013,8 +14983,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetText_0((__Instance + __PointerAdjustment), value);
__Internal.SetText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -15200,8 +15169,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetText_0((__Instance + __PointerAdjustment), value);
__Internal.SetText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -15401,8 +15369,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(8); __Instance = Marshal.AllocHGlobal(8);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = Kind; __Internal.ctor_1((__Instance + __PointerAdjustment), Kind);
__Internal.ctor_1((__Instance + __PointerAdjustment), __arg0);
} }
public HTMLTagComment(global::CppSharp.Parser.AST.HTMLTagComment _0) public HTMLTagComment(global::CppSharp.Parser.AST.HTMLTagComment _0)
@ -15613,8 +15580,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetName_0((__Instance + __PointerAdjustment), value);
__Internal.SetName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -15628,8 +15594,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetValue_0((__Instance + __PointerAdjustment), value);
__Internal.SetValue_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -15728,8 +15693,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetTagName_0((__Instance + __PointerAdjustment), value);
__Internal.SetTagName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -15857,8 +15821,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetTagName_0((__Instance + __PointerAdjustment), value);
__Internal.SetTagName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -15977,8 +15940,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetText_0((__Instance + __PointerAdjustment), value);
__Internal.SetText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -16150,8 +16112,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetText_0((__Instance + __PointerAdjustment), value);
__Internal.SetText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -16165,8 +16126,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetBriefText_0((__Instance + __PointerAdjustment), value);
__Internal.SetBriefText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -17011,8 +16971,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetABI_0((__Instance + __PointerAdjustment), value);
__Internal.SetABI_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -17380,8 +17339,7 @@ namespace CppSharp
public void AddArguments(string s) public void AddArguments(string s)
{ {
var __arg0 = s; __Internal.AddArguments_0((__Instance + __PointerAdjustment), s);
__Internal.AddArguments_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearArguments() public void ClearArguments()
@ -17397,8 +17355,7 @@ namespace CppSharp
public void AddSourceFiles(string s) public void AddSourceFiles(string s)
{ {
var __arg0 = s; __Internal.AddSourceFiles_0((__Instance + __PointerAdjustment), s);
__Internal.AddSourceFiles_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearSourceFiles() public void ClearSourceFiles()
@ -17414,8 +17371,7 @@ namespace CppSharp
public void AddIncludeDirs(string s) public void AddIncludeDirs(string s)
{ {
var __arg0 = s; __Internal.AddIncludeDirs_0((__Instance + __PointerAdjustment), s);
__Internal.AddIncludeDirs_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearIncludeDirs() public void ClearIncludeDirs()
@ -17431,8 +17387,7 @@ namespace CppSharp
public void AddSystemIncludeDirs(string s) public void AddSystemIncludeDirs(string s)
{ {
var __arg0 = s; __Internal.AddSystemIncludeDirs_0((__Instance + __PointerAdjustment), s);
__Internal.AddSystemIncludeDirs_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearSystemIncludeDirs() public void ClearSystemIncludeDirs()
@ -17448,8 +17403,7 @@ namespace CppSharp
public void AddDefines(string s) public void AddDefines(string s)
{ {
var __arg0 = s; __Internal.AddDefines_0((__Instance + __PointerAdjustment), s);
__Internal.AddDefines_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearDefines() public void ClearDefines()
@ -17465,8 +17419,7 @@ namespace CppSharp
public void AddUndefines(string s) public void AddUndefines(string s)
{ {
var __arg0 = s; __Internal.AddUndefines_0((__Instance + __PointerAdjustment), s);
__Internal.AddUndefines_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearUndefines() public void ClearUndefines()
@ -17482,8 +17435,7 @@ namespace CppSharp
public void AddLibraryDirs(string s) public void AddLibraryDirs(string s)
{ {
var __arg0 = s; __Internal.AddLibraryDirs_0((__Instance + __PointerAdjustment), s);
__Internal.AddLibraryDirs_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearLibraryDirs() public void ClearLibraryDirs()
@ -17628,8 +17580,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetLibraryFile_0((__Instance + __PointerAdjustment), value);
__Internal.SetLibraryFile_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -17643,8 +17594,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetTargetTriple_0((__Instance + __PointerAdjustment), value);
__Internal.SetTargetTriple_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -17890,8 +17840,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetFileName_0((__Instance + __PointerAdjustment), value);
__Internal.SetFileName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -17905,8 +17854,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetMessage_0((__Instance + __PointerAdjustment), value);
__Internal.SetMessage_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }

156
src/CppParser/Bindings/CSharp/x86_64-linux-gnu/CppSharp.CppParser.cs

@ -337,8 +337,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(8); __Instance = Marshal.AllocHGlobal(8);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = kind; __Internal.ctor_0((__Instance + __PointerAdjustment), kind);
__Internal.ctor_0((__Instance + __PointerAdjustment), __arg0);
} }
public Type(global::CppSharp.Parser.AST.Type _0) public Type(global::CppSharp.Parser.AST.Type _0)
@ -3600,8 +3599,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetName_0((__Instance + __PointerAdjustment), value);
__Internal.SetName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -4267,8 +4265,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(120); __Instance = Marshal.AllocHGlobal(120);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = kind; __Internal.ctor_0((__Instance + __PointerAdjustment), kind);
__Internal.ctor_0((__Instance + __PointerAdjustment), __arg0);
} }
public Declaration(global::CppSharp.Parser.AST.Declaration _0) public Declaration(global::CppSharp.Parser.AST.Declaration _0)
@ -4520,8 +4517,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetName_0((__Instance + __PointerAdjustment), value);
__Internal.SetName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -4535,8 +4531,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetUSR_0((__Instance + __PointerAdjustment), value);
__Internal.SetUSR_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -4550,8 +4545,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetDebugText_0((__Instance + __PointerAdjustment), value);
__Internal.SetDebugText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -4889,8 +4883,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(392); __Instance = Marshal.AllocHGlobal(392);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = kind; __Internal.ctor_0((__Instance + __PointerAdjustment), kind);
__Internal.ctor_0((__Instance + __PointerAdjustment), __arg0);
} }
public DeclarationContext(global::CppSharp.Parser.AST.DeclarationContext _0) public DeclarationContext(global::CppSharp.Parser.AST.DeclarationContext _0)
@ -5345,8 +5338,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(136); __Instance = Marshal.AllocHGlobal(136);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = kind; __Internal.ctor_0((__Instance + __PointerAdjustment), kind);
__Internal.ctor_0((__Instance + __PointerAdjustment), __arg0);
} }
public TypedefNameDecl(global::CppSharp.Parser.AST.TypedefNameDecl _0) public TypedefNameDecl(global::CppSharp.Parser.AST.TypedefNameDecl _0)
@ -5990,8 +5982,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetString_0((__Instance + __PointerAdjustment), value);
__Internal.SetString_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -6222,8 +6213,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetOpcodeStr_0((__Instance + __PointerAdjustment), value);
__Internal.SetOpcodeStr_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -7129,8 +7119,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetMangled_0((__Instance + __PointerAdjustment), value);
__Internal.SetMangled_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -7144,8 +7133,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetSignature_0((__Instance + __PointerAdjustment), value);
__Internal.SetSignature_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -7834,8 +7822,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetExpression_0((__Instance + __PointerAdjustment), value);
__Internal.SetExpression_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -8162,8 +8149,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetMangled_0((__Instance + __PointerAdjustment), value);
__Internal.SetMangled_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -9366,8 +9352,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(152); __Instance = Marshal.AllocHGlobal(152);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = kind; __Internal.ctor_0((__Instance + __PointerAdjustment), kind);
__Internal.ctor_0((__Instance + __PointerAdjustment), __arg0);
} }
public Template() public Template()
@ -9721,8 +9706,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(136); __Instance = Marshal.AllocHGlobal(136);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = kind; __Internal.ctor_0((__Instance + __PointerAdjustment), kind);
__Internal.ctor_0((__Instance + __PointerAdjustment), __arg0);
} }
public TemplateParameter(global::CppSharp.Parser.AST.TemplateParameter _0) public TemplateParameter(global::CppSharp.Parser.AST.TemplateParameter _0)
@ -12549,8 +12533,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetName_0((__Instance + __PointerAdjustment), value);
__Internal.SetName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -12564,8 +12547,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetExpression_0((__Instance + __PointerAdjustment), value);
__Internal.SetExpression_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -12721,8 +12703,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetName_0((__Instance + __PointerAdjustment), value);
__Internal.SetName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -12736,8 +12717,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetText_0((__Instance + __PointerAdjustment), value);
__Internal.SetText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -13000,8 +12980,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetFileName_0((__Instance + __PointerAdjustment), value);
__Internal.SetFileName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -13179,8 +13158,7 @@ namespace CppSharp
public void AddSymbols(string s) public void AddSymbols(string s)
{ {
var __arg0 = s; __Internal.AddSymbols_0((__Instance + __PointerAdjustment), s);
__Internal.AddSymbols_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearSymbols() public void ClearSymbols()
@ -13196,8 +13174,7 @@ namespace CppSharp
public void AddDependencies(string s) public void AddDependencies(string s)
{ {
var __arg0 = s; __Internal.AddDependencies_0((__Instance + __PointerAdjustment), s);
__Internal.AddDependencies_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearDependencies() public void ClearDependencies()
@ -13228,8 +13205,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetFileName_0((__Instance + __PointerAdjustment), value);
__Internal.SetFileName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -13466,8 +13442,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(4); __Instance = Marshal.AllocHGlobal(4);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = kind; __Internal.ctor_0((__Instance + __PointerAdjustment), kind);
__Internal.ctor_0((__Instance + __PointerAdjustment), __arg0);
} }
public Comment(global::CppSharp.Parser.AST.Comment _0) public Comment(global::CppSharp.Parser.AST.Comment _0)
@ -13582,8 +13557,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(4); __Instance = Marshal.AllocHGlobal(4);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = Kind; __Internal.ctor_1((__Instance + __PointerAdjustment), Kind);
__Internal.ctor_1((__Instance + __PointerAdjustment), __arg0);
} }
public BlockContentComment(global::CppSharp.Parser.AST.BlockContentComment _0) public BlockContentComment(global::CppSharp.Parser.AST.BlockContentComment _0)
@ -13821,8 +13795,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(8); __Instance = Marshal.AllocHGlobal(8);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = Kind; __Internal.ctor_1((__Instance + __PointerAdjustment), Kind);
__Internal.ctor_1((__Instance + __PointerAdjustment), __arg0);
} }
public InlineContentComment(global::CppSharp.Parser.AST.InlineContentComment _0) public InlineContentComment(global::CppSharp.Parser.AST.InlineContentComment _0)
@ -14189,8 +14162,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetText_0((__Instance + __PointerAdjustment), value);
__Internal.SetText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -14243,8 +14215,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(40); __Instance = Marshal.AllocHGlobal(40);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = Kind; __Internal.ctor_1((__Instance + __PointerAdjustment), Kind);
__Internal.ctor_1((__Instance + __PointerAdjustment), __arg0);
} }
public BlockCommandComment(global::CppSharp.Parser.AST.BlockCommandComment _0) public BlockCommandComment(global::CppSharp.Parser.AST.BlockCommandComment _0)
@ -14733,8 +14704,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetText_0((__Instance + __PointerAdjustment), value);
__Internal.SetText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -15013,8 +14983,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetText_0((__Instance + __PointerAdjustment), value);
__Internal.SetText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -15200,8 +15169,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetText_0((__Instance + __PointerAdjustment), value);
__Internal.SetText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -15401,8 +15369,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(8); __Instance = Marshal.AllocHGlobal(8);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = Kind; __Internal.ctor_1((__Instance + __PointerAdjustment), Kind);
__Internal.ctor_1((__Instance + __PointerAdjustment), __arg0);
} }
public HTMLTagComment(global::CppSharp.Parser.AST.HTMLTagComment _0) public HTMLTagComment(global::CppSharp.Parser.AST.HTMLTagComment _0)
@ -15613,8 +15580,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetName_0((__Instance + __PointerAdjustment), value);
__Internal.SetName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -15628,8 +15594,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetValue_0((__Instance + __PointerAdjustment), value);
__Internal.SetValue_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -15728,8 +15693,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetTagName_0((__Instance + __PointerAdjustment), value);
__Internal.SetTagName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -15857,8 +15821,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetTagName_0((__Instance + __PointerAdjustment), value);
__Internal.SetTagName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -15977,8 +15940,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetText_0((__Instance + __PointerAdjustment), value);
__Internal.SetText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -16150,8 +16112,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetText_0((__Instance + __PointerAdjustment), value);
__Internal.SetText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -16165,8 +16126,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetBriefText_0((__Instance + __PointerAdjustment), value);
__Internal.SetBriefText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -17011,8 +16971,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetABI_0((__Instance + __PointerAdjustment), value);
__Internal.SetABI_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -17380,8 +17339,7 @@ namespace CppSharp
public void AddArguments(string s) public void AddArguments(string s)
{ {
var __arg0 = s; __Internal.AddArguments_0((__Instance + __PointerAdjustment), s);
__Internal.AddArguments_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearArguments() public void ClearArguments()
@ -17397,8 +17355,7 @@ namespace CppSharp
public void AddSourceFiles(string s) public void AddSourceFiles(string s)
{ {
var __arg0 = s; __Internal.AddSourceFiles_0((__Instance + __PointerAdjustment), s);
__Internal.AddSourceFiles_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearSourceFiles() public void ClearSourceFiles()
@ -17414,8 +17371,7 @@ namespace CppSharp
public void AddIncludeDirs(string s) public void AddIncludeDirs(string s)
{ {
var __arg0 = s; __Internal.AddIncludeDirs_0((__Instance + __PointerAdjustment), s);
__Internal.AddIncludeDirs_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearIncludeDirs() public void ClearIncludeDirs()
@ -17431,8 +17387,7 @@ namespace CppSharp
public void AddSystemIncludeDirs(string s) public void AddSystemIncludeDirs(string s)
{ {
var __arg0 = s; __Internal.AddSystemIncludeDirs_0((__Instance + __PointerAdjustment), s);
__Internal.AddSystemIncludeDirs_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearSystemIncludeDirs() public void ClearSystemIncludeDirs()
@ -17448,8 +17403,7 @@ namespace CppSharp
public void AddDefines(string s) public void AddDefines(string s)
{ {
var __arg0 = s; __Internal.AddDefines_0((__Instance + __PointerAdjustment), s);
__Internal.AddDefines_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearDefines() public void ClearDefines()
@ -17465,8 +17419,7 @@ namespace CppSharp
public void AddUndefines(string s) public void AddUndefines(string s)
{ {
var __arg0 = s; __Internal.AddUndefines_0((__Instance + __PointerAdjustment), s);
__Internal.AddUndefines_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearUndefines() public void ClearUndefines()
@ -17482,8 +17435,7 @@ namespace CppSharp
public void AddLibraryDirs(string s) public void AddLibraryDirs(string s)
{ {
var __arg0 = s; __Internal.AddLibraryDirs_0((__Instance + __PointerAdjustment), s);
__Internal.AddLibraryDirs_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearLibraryDirs() public void ClearLibraryDirs()
@ -17628,8 +17580,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetLibraryFile_0((__Instance + __PointerAdjustment), value);
__Internal.SetLibraryFile_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -17643,8 +17594,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetTargetTriple_0((__Instance + __PointerAdjustment), value);
__Internal.SetTargetTriple_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -17890,8 +17840,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetFileName_0((__Instance + __PointerAdjustment), value);
__Internal.SetFileName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -17905,8 +17854,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetMessage_0((__Instance + __PointerAdjustment), value);
__Internal.SetMessage_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }

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

@ -337,8 +337,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(8); __Instance = Marshal.AllocHGlobal(8);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = kind; __Internal.ctor_0((__Instance + __PointerAdjustment), kind);
__Internal.ctor_0((__Instance + __PointerAdjustment), __arg0);
} }
public Type(global::CppSharp.Parser.AST.Type _0) public Type(global::CppSharp.Parser.AST.Type _0)
@ -3601,8 +3600,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetName_0((__Instance + __PointerAdjustment), value);
__Internal.SetName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -4268,8 +4266,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(192); __Instance = Marshal.AllocHGlobal(192);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = kind; __Internal.ctor_0((__Instance + __PointerAdjustment), kind);
__Internal.ctor_0((__Instance + __PointerAdjustment), __arg0);
} }
public Declaration(global::CppSharp.Parser.AST.Declaration _0) public Declaration(global::CppSharp.Parser.AST.Declaration _0)
@ -4521,8 +4518,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetName_0((__Instance + __PointerAdjustment), value);
__Internal.SetName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -4536,8 +4532,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetUSR_0((__Instance + __PointerAdjustment), value);
__Internal.SetUSR_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -4551,8 +4546,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetDebugText_0((__Instance + __PointerAdjustment), value);
__Internal.SetDebugText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -4890,8 +4884,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(432); __Instance = Marshal.AllocHGlobal(432);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = kind; __Internal.ctor_0((__Instance + __PointerAdjustment), kind);
__Internal.ctor_0((__Instance + __PointerAdjustment), __arg0);
} }
public DeclarationContext(global::CppSharp.Parser.AST.DeclarationContext _0) public DeclarationContext(global::CppSharp.Parser.AST.DeclarationContext _0)
@ -5346,8 +5339,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(208); __Instance = Marshal.AllocHGlobal(208);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = kind; __Internal.ctor_0((__Instance + __PointerAdjustment), kind);
__Internal.ctor_0((__Instance + __PointerAdjustment), __arg0);
} }
public TypedefNameDecl(global::CppSharp.Parser.AST.TypedefNameDecl _0) public TypedefNameDecl(global::CppSharp.Parser.AST.TypedefNameDecl _0)
@ -5991,8 +5983,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetString_0((__Instance + __PointerAdjustment), value);
__Internal.SetString_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -6223,8 +6214,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetOpcodeStr_0((__Instance + __PointerAdjustment), value);
__Internal.SetOpcodeStr_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -7130,8 +7120,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetMangled_0((__Instance + __PointerAdjustment), value);
__Internal.SetMangled_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -7145,8 +7134,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetSignature_0((__Instance + __PointerAdjustment), value);
__Internal.SetSignature_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -7835,8 +7823,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetExpression_0((__Instance + __PointerAdjustment), value);
__Internal.SetExpression_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -8163,8 +8150,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetMangled_0((__Instance + __PointerAdjustment), value);
__Internal.SetMangled_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -9367,8 +9353,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(224); __Instance = Marshal.AllocHGlobal(224);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = kind; __Internal.ctor_0((__Instance + __PointerAdjustment), kind);
__Internal.ctor_0((__Instance + __PointerAdjustment), __arg0);
} }
public Template() public Template()
@ -9722,8 +9707,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(208); __Instance = Marshal.AllocHGlobal(208);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = kind; __Internal.ctor_0((__Instance + __PointerAdjustment), kind);
__Internal.ctor_0((__Instance + __PointerAdjustment), __arg0);
} }
public TemplateParameter(global::CppSharp.Parser.AST.TemplateParameter _0) public TemplateParameter(global::CppSharp.Parser.AST.TemplateParameter _0)
@ -12550,8 +12534,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetName_0((__Instance + __PointerAdjustment), value);
__Internal.SetName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -12565,8 +12548,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetExpression_0((__Instance + __PointerAdjustment), value);
__Internal.SetExpression_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -12722,8 +12704,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetName_0((__Instance + __PointerAdjustment), value);
__Internal.SetName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -12737,8 +12718,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetText_0((__Instance + __PointerAdjustment), value);
__Internal.SetText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -13001,8 +12981,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetFileName_0((__Instance + __PointerAdjustment), value);
__Internal.SetFileName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -13180,8 +13159,7 @@ namespace CppSharp
public void AddSymbols(string s) public void AddSymbols(string s)
{ {
var __arg0 = s; __Internal.AddSymbols_0((__Instance + __PointerAdjustment), s);
__Internal.AddSymbols_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearSymbols() public void ClearSymbols()
@ -13197,8 +13175,7 @@ namespace CppSharp
public void AddDependencies(string s) public void AddDependencies(string s)
{ {
var __arg0 = s; __Internal.AddDependencies_0((__Instance + __PointerAdjustment), s);
__Internal.AddDependencies_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearDependencies() public void ClearDependencies()
@ -13229,8 +13206,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetFileName_0((__Instance + __PointerAdjustment), value);
__Internal.SetFileName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -13467,8 +13443,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(4); __Instance = Marshal.AllocHGlobal(4);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = kind; __Internal.ctor_0((__Instance + __PointerAdjustment), kind);
__Internal.ctor_0((__Instance + __PointerAdjustment), __arg0);
} }
public Comment(global::CppSharp.Parser.AST.Comment _0) public Comment(global::CppSharp.Parser.AST.Comment _0)
@ -13583,8 +13558,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(4); __Instance = Marshal.AllocHGlobal(4);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = Kind; __Internal.ctor_1((__Instance + __PointerAdjustment), Kind);
__Internal.ctor_1((__Instance + __PointerAdjustment), __arg0);
} }
public BlockContentComment(global::CppSharp.Parser.AST.BlockContentComment _0) public BlockContentComment(global::CppSharp.Parser.AST.BlockContentComment _0)
@ -13822,8 +13796,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(8); __Instance = Marshal.AllocHGlobal(8);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = Kind; __Internal.ctor_1((__Instance + __PointerAdjustment), Kind);
__Internal.ctor_1((__Instance + __PointerAdjustment), __arg0);
} }
public InlineContentComment(global::CppSharp.Parser.AST.InlineContentComment _0) public InlineContentComment(global::CppSharp.Parser.AST.InlineContentComment _0)
@ -14190,8 +14163,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetText_0((__Instance + __PointerAdjustment), value);
__Internal.SetText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -14244,8 +14216,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(40); __Instance = Marshal.AllocHGlobal(40);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = Kind; __Internal.ctor_1((__Instance + __PointerAdjustment), Kind);
__Internal.ctor_1((__Instance + __PointerAdjustment), __arg0);
} }
public BlockCommandComment(global::CppSharp.Parser.AST.BlockCommandComment _0) public BlockCommandComment(global::CppSharp.Parser.AST.BlockCommandComment _0)
@ -14734,8 +14705,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetText_0((__Instance + __PointerAdjustment), value);
__Internal.SetText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -15014,8 +14984,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetText_0((__Instance + __PointerAdjustment), value);
__Internal.SetText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -15201,8 +15170,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetText_0((__Instance + __PointerAdjustment), value);
__Internal.SetText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -15402,8 +15370,7 @@ namespace CppSharp
__Instance = Marshal.AllocHGlobal(8); __Instance = Marshal.AllocHGlobal(8);
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
var __arg0 = Kind; __Internal.ctor_1((__Instance + __PointerAdjustment), Kind);
__Internal.ctor_1((__Instance + __PointerAdjustment), __arg0);
} }
public HTMLTagComment(global::CppSharp.Parser.AST.HTMLTagComment _0) public HTMLTagComment(global::CppSharp.Parser.AST.HTMLTagComment _0)
@ -15614,8 +15581,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetName_0((__Instance + __PointerAdjustment), value);
__Internal.SetName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -15629,8 +15595,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetValue_0((__Instance + __PointerAdjustment), value);
__Internal.SetValue_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -15729,8 +15694,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetTagName_0((__Instance + __PointerAdjustment), value);
__Internal.SetTagName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -15858,8 +15822,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetTagName_0((__Instance + __PointerAdjustment), value);
__Internal.SetTagName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -15978,8 +15941,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetText_0((__Instance + __PointerAdjustment), value);
__Internal.SetText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -16151,8 +16113,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetText_0((__Instance + __PointerAdjustment), value);
__Internal.SetText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -16166,8 +16127,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetBriefText_0((__Instance + __PointerAdjustment), value);
__Internal.SetBriefText_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -17012,8 +16972,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetABI_0((__Instance + __PointerAdjustment), value);
__Internal.SetABI_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }
@ -17381,8 +17340,7 @@ namespace CppSharp
public void AddArguments(string s) public void AddArguments(string s)
{ {
var __arg0 = s; __Internal.AddArguments_0((__Instance + __PointerAdjustment), s);
__Internal.AddArguments_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearArguments() public void ClearArguments()
@ -17398,8 +17356,7 @@ namespace CppSharp
public void AddSourceFiles(string s) public void AddSourceFiles(string s)
{ {
var __arg0 = s; __Internal.AddSourceFiles_0((__Instance + __PointerAdjustment), s);
__Internal.AddSourceFiles_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearSourceFiles() public void ClearSourceFiles()
@ -17415,8 +17372,7 @@ namespace CppSharp
public void AddIncludeDirs(string s) public void AddIncludeDirs(string s)
{ {
var __arg0 = s; __Internal.AddIncludeDirs_0((__Instance + __PointerAdjustment), s);
__Internal.AddIncludeDirs_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearIncludeDirs() public void ClearIncludeDirs()
@ -17432,8 +17388,7 @@ namespace CppSharp
public void AddSystemIncludeDirs(string s) public void AddSystemIncludeDirs(string s)
{ {
var __arg0 = s; __Internal.AddSystemIncludeDirs_0((__Instance + __PointerAdjustment), s);
__Internal.AddSystemIncludeDirs_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearSystemIncludeDirs() public void ClearSystemIncludeDirs()
@ -17449,8 +17404,7 @@ namespace CppSharp
public void AddDefines(string s) public void AddDefines(string s)
{ {
var __arg0 = s; __Internal.AddDefines_0((__Instance + __PointerAdjustment), s);
__Internal.AddDefines_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearDefines() public void ClearDefines()
@ -17466,8 +17420,7 @@ namespace CppSharp
public void AddUndefines(string s) public void AddUndefines(string s)
{ {
var __arg0 = s; __Internal.AddUndefines_0((__Instance + __PointerAdjustment), s);
__Internal.AddUndefines_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearUndefines() public void ClearUndefines()
@ -17483,8 +17436,7 @@ namespace CppSharp
public void AddLibraryDirs(string s) public void AddLibraryDirs(string s)
{ {
var __arg0 = s; __Internal.AddLibraryDirs_0((__Instance + __PointerAdjustment), s);
__Internal.AddLibraryDirs_0((__Instance + __PointerAdjustment), __arg0);
} }
public void ClearLibraryDirs() public void ClearLibraryDirs()
@ -17629,8 +17581,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetLibraryFile_0((__Instance + __PointerAdjustment), value);
__Internal.SetLibraryFile_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -17644,8 +17595,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetTargetTriple_0((__Instance + __PointerAdjustment), value);
__Internal.SetTargetTriple_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -17891,8 +17841,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetFileName_0((__Instance + __PointerAdjustment), value);
__Internal.SetFileName_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
@ -17906,8 +17855,7 @@ namespace CppSharp
set set
{ {
var __arg0 = value; __Internal.SetMessage_0((__Instance + __PointerAdjustment), value);
__Internal.SetMessage_0((__Instance + __PointerAdjustment), __arg0);
} }
} }
} }

17
src/Generator/Generators/CSharp/CSharpSources.cs

@ -2861,7 +2861,7 @@ namespace CppSharp.Generators.CSharp
{ {
var param = paramInfo.Param; var param = paramInfo.Param;
if (!(param.IsOut || param.IsInOut)) continue; if (!(param.IsOut || param.IsInOut)) continue;
if (param.Type.IsPrimitiveTypeConvertibleToRef()) if (param.Type.Desugar().IsPrimitiveTypeConvertibleToRef())
continue; continue;
var nativeVarName = paramInfo.Name; var nativeVarName = paramInfo.Name;
@ -2916,13 +2916,9 @@ namespace CppSharp.Generators.CSharp
private ParamMarshal GenerateFunctionParamMarshal(Parameter param, int paramIndex, private ParamMarshal GenerateFunctionParamMarshal(Parameter param, int paramIndex,
Function function = null) Function function = null)
{ {
PrimitiveType primitive;
// Do not delete instance in MS ABI. // Do not delete instance in MS ABI.
var name = param.Kind == ParameterKind.ImplicitDestructorParameter ? "0" : param.Name; var name = param.Name;
if (param.Type.IsPrimitiveType(out primitive) && primitive != PrimitiveType.Char) param.Name = param.Kind == ParameterKind.ImplicitDestructorParameter ? "0" : name;
{
return new ParamMarshal { Name = name, Param = param };
}
var argName = Generator.GeneratedIdentifier("arg") + paramIndex.ToString(CultureInfo.InvariantCulture); var argName = Generator.GeneratedIdentifier("arg") + paramIndex.ToString(CultureInfo.InvariantCulture);
var paramMarshal = new ParamMarshal { Name = argName, Param = param }; var paramMarshal = new ParamMarshal { Name = argName, Param = param };
@ -2961,7 +2957,12 @@ namespace CppSharp.Generators.CSharp
if (paramMarshal.HasUsingBlock) if (paramMarshal.HasUsingBlock)
PushIndent(); PushIndent();
WriteLine("var {0} = {1};", argName, marshal.Context.Return); if (marshal.Context.Return.ToString() == param.Name)
paramMarshal.Name = param.Name;
else
WriteLine("var {0} = {1};", argName, marshal.Context.Return);
param.Name = name;
return paramMarshal; return paramMarshal;
} }

3
src/Generator/Passes/MarshalPrimitivePointersAsRefTypePass.cs

@ -1,5 +1,6 @@
using System.Linq; using System.Linq;
using CppSharp.AST; using CppSharp.AST;
using CppSharp.AST.Extensions;
using CppSharp.Generators; using CppSharp.Generators;
namespace CppSharp.Passes namespace CppSharp.Passes
@ -14,7 +15,7 @@ namespace CppSharp.Passes
return false; return false;
foreach (var param in function.Parameters.Where( foreach (var param in function.Parameters.Where(
p => !p.IsOut && p.Type.IsPrimitiveTypeConvertibleToRef())) p => !p.IsOut && p.Type.Desugar().IsPrimitiveTypeConvertibleToRef()))
param.Usage = ParameterUsage.InOut; param.Usage = ParameterUsage.InOut;
return true; return true;

2
tests/CSharp/CSharp.cpp

@ -473,7 +473,7 @@ MethodsWithDefaultValues::MethodsWithDefaultValues(int a)
m_foo.A = a; m_foo.A = a;
} }
MethodsWithDefaultValues::MethodsWithDefaultValues(float a, int* b) MethodsWithDefaultValues::MethodsWithDefaultValues(float a, Zero b)
{ {
} }

3
tests/CSharp/CSharp.h

@ -384,10 +384,11 @@ public:
static const char* stringConstant; static const char* stringConstant;
static int intConstant; static int intConstant;
typedef int* Zero;
MethodsWithDefaultValues(Foo foo = Foo()); MethodsWithDefaultValues(Foo foo = Foo());
MethodsWithDefaultValues(int a); MethodsWithDefaultValues(int a);
MethodsWithDefaultValues(float a, int* b = 0); MethodsWithDefaultValues(float a, Zero b = 0);
MethodsWithDefaultValues(double d, QList<QColor> list = QList<QColor>()); MethodsWithDefaultValues(double d, QList<QColor> list = QList<QColor>());
MethodsWithDefaultValues(QRect* pointer, float f = 1, int i = std::numeric_limits<double>::infinity()); MethodsWithDefaultValues(QRect* pointer, float f = 1, int i = std::numeric_limits<double>::infinity());
void defaultPointer(Foo* ptr = 0); void defaultPointer(Foo* ptr = 0);

Loading…
Cancel
Save