Browse Source

regenerated bindings (#1813)

* regenerated bindings

* regenerated bindings after rebase

* Directory.Build.props: support C# 10.0
pull/1823/head
deadlocklogic 2 years ago committed by GitHub
parent
commit
2ecd9528ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Directory.Build.props
  2. 11
      src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/CppSharp.CppParser.cs
  3. 1
      src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/Std.cs
  4. 11
      src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/CppSharp.CppParser.cs
  5. 10
      src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/Std.cs
  6. 11
      src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/CppSharp.CppParser.cs
  7. 1
      src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/Std.cs
  8. 11
      src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/CppSharp.CppParser.cs
  9. 1
      src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/Std.cs
  10. 11
      src/CppParser/Bindings/CSharp/x86_64-linux-gnu/CppSharp.CppParser.cs
  11. 1
      src/CppParser/Bindings/CSharp/x86_64-linux-gnu/Std.cs
  12. 11
      src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/CppSharp.CppParser.cs
  13. 10
      src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/Std.cs

2
Directory.Build.props

@ -28,7 +28,7 @@ @@ -28,7 +28,7 @@
<NativeProjectsDir>$(ActionDir)projects\</NativeProjectsDir>
<PackageDir>$(RootDir)artifacts\package\</PackageDir>
<TargetDir>$(OutputPath)</TargetDir>
<LangVersion>9.0</LangVersion>
<LangVersion>10.0</LangVersion>
<WarningLevel>4</WarningLevel>
<DotNetCmd>dotnet</DotNetCmd>
<GeneratorFileExtension>dll</GeneratorFileExtension>

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

@ -14,6 +14,7 @@ using System.Runtime.CompilerServices; @@ -14,6 +14,7 @@ using System.Runtime.CompilerServices;
[assembly:InternalsVisibleTo("CppSharp.Parser")]
#pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required
#pragma warning disable CS9084 // Struct member returns 'this' or other instance members by reference
namespace CppSharp
{
@ -3017,7 +3018,7 @@ namespace CppSharp @@ -3017,7 +3018,7 @@ namespace CppSharp
}
private SourceLocation.__Internal __instance;
internal SourceLocation.__Internal __Instance => __instance;
internal ref SourceLocation.__Internal __Instance => ref __instance;
internal static SourceLocation __CreateInstance(__IntPtr native, bool skipVTables = false)
{
@ -3040,6 +3041,14 @@ namespace CppSharp @@ -3040,6 +3041,14 @@ namespace CppSharp
__instance = *(global::CppSharp.Parser.SourceLocation.__Internal*) native;
}
public SourceLocation()
{
fixed (__Internal* __instancePtr = &__instance)
{
__Internal.ctor(new __IntPtr(__instancePtr));
}
}
public SourceLocation(uint ID)
: this()
{

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

@ -16,6 +16,7 @@ using __IntPtr = global::System.IntPtr; @@ -16,6 +16,7 @@ using __IntPtr = global::System.IntPtr;
[assembly:InternalsVisibleTo("CppSharp.CppParser")]
#pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required
#pragma warning disable CS9084 // Struct member returns 'this' or other instance members by reference
namespace Std
{

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

@ -14,6 +14,7 @@ using System.Runtime.CompilerServices; @@ -14,6 +14,7 @@ using System.Runtime.CompilerServices;
[assembly:InternalsVisibleTo("CppSharp.Parser")]
#pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required
#pragma warning disable CS9084 // Struct member returns 'this' or other instance members by reference
namespace CppSharp
{
@ -3017,7 +3018,7 @@ namespace CppSharp @@ -3017,7 +3018,7 @@ namespace CppSharp
}
private SourceLocation.__Internal __instance;
internal SourceLocation.__Internal __Instance => __instance;
internal ref SourceLocation.__Internal __Instance => ref __instance;
internal static SourceLocation __CreateInstance(__IntPtr native, bool skipVTables = false)
{
@ -3040,6 +3041,14 @@ namespace CppSharp @@ -3040,6 +3041,14 @@ namespace CppSharp
__instance = *(global::CppSharp.Parser.SourceLocation.__Internal*) native;
}
public SourceLocation()
{
fixed (__Internal* __instancePtr = &__instance)
{
__Internal.ctor(new __IntPtr(__instancePtr));
}
}
public SourceLocation(uint ID)
: this()
{

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

@ -16,6 +16,7 @@ using __IntPtr = global::System.IntPtr; @@ -16,6 +16,7 @@ using __IntPtr = global::System.IntPtr;
[assembly:InternalsVisibleTo("CppSharp.CppParser")]
#pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required
#pragma warning disable CS9084 // Struct member returns 'this' or other instance members by reference
namespace Std
{
@ -171,6 +172,15 @@ namespace Std @@ -171,6 +172,15 @@ namespace Std
return;
NativeToManagedMap.TryRemove(__Instance, out _);
DisposePartial(disposing);
if (callNativeDtor)
{
var ___Ty = typeof(_Ty);
if (___Ty.IsAssignableFrom(typeof(sbyte)))
{
return;
}
throw new ArgumentOutOfRangeException("_Ty", string.Join(", ", new[] { typeof(_Ty).FullName }), "global::Std.Allocator<_Ty> maps a C++ template class and therefore it only supports a limited set of types and their subclasses: <sbyte>.");
}
if (__ownsNativeInstance)
Marshal.FreeHGlobal(__Instance);
__Instance = IntPtr.Zero;

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

@ -14,6 +14,7 @@ using System.Runtime.CompilerServices; @@ -14,6 +14,7 @@ using System.Runtime.CompilerServices;
[assembly:InternalsVisibleTo("CppSharp.Parser")]
#pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required
#pragma warning disable CS9084 // Struct member returns 'this' or other instance members by reference
namespace CppSharp
{
@ -3017,7 +3018,7 @@ namespace CppSharp @@ -3017,7 +3018,7 @@ namespace CppSharp
}
private SourceLocation.__Internal __instance;
internal SourceLocation.__Internal __Instance => __instance;
internal ref SourceLocation.__Internal __Instance => ref __instance;
internal static SourceLocation __CreateInstance(__IntPtr native, bool skipVTables = false)
{
@ -3040,6 +3041,14 @@ namespace CppSharp @@ -3040,6 +3041,14 @@ namespace CppSharp
__instance = *(global::CppSharp.Parser.SourceLocation.__Internal*) native;
}
public SourceLocation()
{
fixed (__Internal* __instancePtr = &__instance)
{
__Internal.ctor(new __IntPtr(__instancePtr));
}
}
public SourceLocation(uint ID)
: this()
{

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

@ -16,6 +16,7 @@ using __IntPtr = global::System.IntPtr; @@ -16,6 +16,7 @@ using __IntPtr = global::System.IntPtr;
[assembly:InternalsVisibleTo("CppSharp.CppParser")]
#pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required
#pragma warning disable CS9084 // Struct member returns 'this' or other instance members by reference
namespace Std
{

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

@ -14,6 +14,7 @@ using System.Runtime.CompilerServices; @@ -14,6 +14,7 @@ using System.Runtime.CompilerServices;
[assembly:InternalsVisibleTo("CppSharp.Parser")]
#pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required
#pragma warning disable CS9084 // Struct member returns 'this' or other instance members by reference
namespace CppSharp
{
@ -3017,7 +3018,7 @@ namespace CppSharp @@ -3017,7 +3018,7 @@ namespace CppSharp
}
private SourceLocation.__Internal __instance;
internal SourceLocation.__Internal __Instance => __instance;
internal ref SourceLocation.__Internal __Instance => ref __instance;
internal static SourceLocation __CreateInstance(__IntPtr native, bool skipVTables = false)
{
@ -3040,6 +3041,14 @@ namespace CppSharp @@ -3040,6 +3041,14 @@ namespace CppSharp
__instance = *(global::CppSharp.Parser.SourceLocation.__Internal*) native;
}
public SourceLocation()
{
fixed (__Internal* __instancePtr = &__instance)
{
__Internal.ctor(new __IntPtr(__instancePtr));
}
}
public SourceLocation(uint ID)
: this()
{

1
src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/Std.cs

@ -16,6 +16,7 @@ using __IntPtr = global::System.IntPtr; @@ -16,6 +16,7 @@ using __IntPtr = global::System.IntPtr;
[assembly:InternalsVisibleTo("CppSharp.CppParser")]
#pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required
#pragma warning disable CS9084 // Struct member returns 'this' or other instance members by reference
namespace Std
{

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

@ -14,6 +14,7 @@ using System.Runtime.CompilerServices; @@ -14,6 +14,7 @@ using System.Runtime.CompilerServices;
[assembly:InternalsVisibleTo("CppSharp.Parser")]
#pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required
#pragma warning disable CS9084 // Struct member returns 'this' or other instance members by reference
namespace CppSharp
{
@ -3017,7 +3018,7 @@ namespace CppSharp @@ -3017,7 +3018,7 @@ namespace CppSharp
}
private SourceLocation.__Internal __instance;
internal SourceLocation.__Internal __Instance => __instance;
internal ref SourceLocation.__Internal __Instance => ref __instance;
internal static SourceLocation __CreateInstance(__IntPtr native, bool skipVTables = false)
{
@ -3040,6 +3041,14 @@ namespace CppSharp @@ -3040,6 +3041,14 @@ namespace CppSharp
__instance = *(global::CppSharp.Parser.SourceLocation.__Internal*) native;
}
public SourceLocation()
{
fixed (__Internal* __instancePtr = &__instance)
{
__Internal.ctor(new __IntPtr(__instancePtr));
}
}
public SourceLocation(uint ID)
: this()
{

1
src/CppParser/Bindings/CSharp/x86_64-linux-gnu/Std.cs

@ -16,6 +16,7 @@ using __IntPtr = global::System.IntPtr; @@ -16,6 +16,7 @@ using __IntPtr = global::System.IntPtr;
[assembly:InternalsVisibleTo("CppSharp.CppParser")]
#pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required
#pragma warning disable CS9084 // Struct member returns 'this' or other instance members by reference
namespace Std
{

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

@ -14,6 +14,7 @@ using System.Runtime.CompilerServices; @@ -14,6 +14,7 @@ using System.Runtime.CompilerServices;
[assembly:InternalsVisibleTo("CppSharp.Parser")]
#pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required
#pragma warning disable CS9084 // Struct member returns 'this' or other instance members by reference
namespace CppSharp
{
@ -3017,7 +3018,7 @@ namespace CppSharp @@ -3017,7 +3018,7 @@ namespace CppSharp
}
private SourceLocation.__Internal __instance;
internal SourceLocation.__Internal __Instance => __instance;
internal ref SourceLocation.__Internal __Instance => ref __instance;
internal static SourceLocation __CreateInstance(__IntPtr native, bool skipVTables = false)
{
@ -3040,6 +3041,14 @@ namespace CppSharp @@ -3040,6 +3041,14 @@ namespace CppSharp
__instance = *(global::CppSharp.Parser.SourceLocation.__Internal*) native;
}
public SourceLocation()
{
fixed (__Internal* __instancePtr = &__instance)
{
__Internal.ctor(new __IntPtr(__instancePtr));
}
}
public SourceLocation(uint ID)
: this()
{

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

@ -16,6 +16,7 @@ using __IntPtr = global::System.IntPtr; @@ -16,6 +16,7 @@ using __IntPtr = global::System.IntPtr;
[assembly:InternalsVisibleTo("CppSharp.CppParser")]
#pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required
#pragma warning disable CS9084 // Struct member returns 'this' or other instance members by reference
namespace Std
{
@ -171,6 +172,15 @@ namespace Std @@ -171,6 +172,15 @@ namespace Std
return;
NativeToManagedMap.TryRemove(__Instance, out _);
DisposePartial(disposing);
if (callNativeDtor)
{
var ___Ty = typeof(_Ty);
if (___Ty.IsAssignableFrom(typeof(sbyte)))
{
return;
}
throw new ArgumentOutOfRangeException("_Ty", string.Join(", ", new[] { typeof(_Ty).FullName }), "global::Std.Allocator<_Ty> maps a C++ template class and therefore it only supports a limited set of types and their subclasses: <sbyte>.");
}
if (__ownsNativeInstance)
Marshal.FreeHGlobal(__Instance);
__Instance = IntPtr.Zero;

Loading…
Cancel
Save