зеркало из https://github.com/mono/CppSharp.git
regenerated bindings (#1813)
* regenerated bindings * regenerated bindings after rebase * Directory.Build.props: support C# 10.0
This commit is contained in:
Родитель
24d1a8491d
Коммит
2ecd9528ff
|
@ -28,7 +28,7 @@
|
||||||
<NativeProjectsDir>$(ActionDir)projects\</NativeProjectsDir>
|
<NativeProjectsDir>$(ActionDir)projects\</NativeProjectsDir>
|
||||||
<PackageDir>$(RootDir)artifacts\package\</PackageDir>
|
<PackageDir>$(RootDir)artifacts\package\</PackageDir>
|
||||||
<TargetDir>$(OutputPath)</TargetDir>
|
<TargetDir>$(OutputPath)</TargetDir>
|
||||||
<LangVersion>9.0</LangVersion>
|
<LangVersion>10.0</LangVersion>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
<DotNetCmd>dotnet</DotNetCmd>
|
<DotNetCmd>dotnet</DotNetCmd>
|
||||||
<GeneratorFileExtension>dll</GeneratorFileExtension>
|
<GeneratorFileExtension>dll</GeneratorFileExtension>
|
||||||
|
|
|
@ -14,6 +14,7 @@ using System.Runtime.CompilerServices;
|
||||||
[assembly:InternalsVisibleTo("CppSharp.Parser")]
|
[assembly:InternalsVisibleTo("CppSharp.Parser")]
|
||||||
|
|
||||||
#pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required
|
#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
|
namespace CppSharp
|
||||||
{
|
{
|
||||||
|
@ -3017,7 +3018,7 @@ namespace CppSharp
|
||||||
}
|
}
|
||||||
|
|
||||||
private SourceLocation.__Internal __instance;
|
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)
|
internal static SourceLocation __CreateInstance(__IntPtr native, bool skipVTables = false)
|
||||||
{
|
{
|
||||||
|
@ -3040,6 +3041,14 @@ namespace CppSharp
|
||||||
__instance = *(global::CppSharp.Parser.SourceLocation.__Internal*) native;
|
__instance = *(global::CppSharp.Parser.SourceLocation.__Internal*) native;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public SourceLocation()
|
||||||
|
{
|
||||||
|
fixed (__Internal* __instancePtr = &__instance)
|
||||||
|
{
|
||||||
|
__Internal.ctor(new __IntPtr(__instancePtr));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public SourceLocation(uint ID)
|
public SourceLocation(uint ID)
|
||||||
: this()
|
: this()
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,7 @@ using __IntPtr = global::System.IntPtr;
|
||||||
[assembly:InternalsVisibleTo("CppSharp.CppParser")]
|
[assembly:InternalsVisibleTo("CppSharp.CppParser")]
|
||||||
|
|
||||||
#pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required
|
#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
|
namespace Std
|
||||||
{
|
{
|
||||||
|
|
|
@ -14,6 +14,7 @@ using System.Runtime.CompilerServices;
|
||||||
[assembly:InternalsVisibleTo("CppSharp.Parser")]
|
[assembly:InternalsVisibleTo("CppSharp.Parser")]
|
||||||
|
|
||||||
#pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required
|
#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
|
namespace CppSharp
|
||||||
{
|
{
|
||||||
|
@ -3017,7 +3018,7 @@ namespace CppSharp
|
||||||
}
|
}
|
||||||
|
|
||||||
private SourceLocation.__Internal __instance;
|
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)
|
internal static SourceLocation __CreateInstance(__IntPtr native, bool skipVTables = false)
|
||||||
{
|
{
|
||||||
|
@ -3040,6 +3041,14 @@ namespace CppSharp
|
||||||
__instance = *(global::CppSharp.Parser.SourceLocation.__Internal*) native;
|
__instance = *(global::CppSharp.Parser.SourceLocation.__Internal*) native;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public SourceLocation()
|
||||||
|
{
|
||||||
|
fixed (__Internal* __instancePtr = &__instance)
|
||||||
|
{
|
||||||
|
__Internal.ctor(new __IntPtr(__instancePtr));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public SourceLocation(uint ID)
|
public SourceLocation(uint ID)
|
||||||
: this()
|
: this()
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,7 @@ using __IntPtr = global::System.IntPtr;
|
||||||
[assembly:InternalsVisibleTo("CppSharp.CppParser")]
|
[assembly:InternalsVisibleTo("CppSharp.CppParser")]
|
||||||
|
|
||||||
#pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required
|
#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
|
namespace Std
|
||||||
{
|
{
|
||||||
|
@ -171,6 +172,15 @@ namespace Std
|
||||||
return;
|
return;
|
||||||
NativeToManagedMap.TryRemove(__Instance, out _);
|
NativeToManagedMap.TryRemove(__Instance, out _);
|
||||||
DisposePartial(disposing);
|
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)
|
if (__ownsNativeInstance)
|
||||||
Marshal.FreeHGlobal(__Instance);
|
Marshal.FreeHGlobal(__Instance);
|
||||||
__Instance = IntPtr.Zero;
|
__Instance = IntPtr.Zero;
|
||||||
|
|
|
@ -14,6 +14,7 @@ using System.Runtime.CompilerServices;
|
||||||
[assembly:InternalsVisibleTo("CppSharp.Parser")]
|
[assembly:InternalsVisibleTo("CppSharp.Parser")]
|
||||||
|
|
||||||
#pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required
|
#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
|
namespace CppSharp
|
||||||
{
|
{
|
||||||
|
@ -3017,7 +3018,7 @@ namespace CppSharp
|
||||||
}
|
}
|
||||||
|
|
||||||
private SourceLocation.__Internal __instance;
|
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)
|
internal static SourceLocation __CreateInstance(__IntPtr native, bool skipVTables = false)
|
||||||
{
|
{
|
||||||
|
@ -3040,6 +3041,14 @@ namespace CppSharp
|
||||||
__instance = *(global::CppSharp.Parser.SourceLocation.__Internal*) native;
|
__instance = *(global::CppSharp.Parser.SourceLocation.__Internal*) native;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public SourceLocation()
|
||||||
|
{
|
||||||
|
fixed (__Internal* __instancePtr = &__instance)
|
||||||
|
{
|
||||||
|
__Internal.ctor(new __IntPtr(__instancePtr));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public SourceLocation(uint ID)
|
public SourceLocation(uint ID)
|
||||||
: this()
|
: this()
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,7 @@ using __IntPtr = global::System.IntPtr;
|
||||||
[assembly:InternalsVisibleTo("CppSharp.CppParser")]
|
[assembly:InternalsVisibleTo("CppSharp.CppParser")]
|
||||||
|
|
||||||
#pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required
|
#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
|
namespace Std
|
||||||
{
|
{
|
||||||
|
|
|
@ -14,6 +14,7 @@ using System.Runtime.CompilerServices;
|
||||||
[assembly:InternalsVisibleTo("CppSharp.Parser")]
|
[assembly:InternalsVisibleTo("CppSharp.Parser")]
|
||||||
|
|
||||||
#pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required
|
#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
|
namespace CppSharp
|
||||||
{
|
{
|
||||||
|
@ -3017,7 +3018,7 @@ namespace CppSharp
|
||||||
}
|
}
|
||||||
|
|
||||||
private SourceLocation.__Internal __instance;
|
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)
|
internal static SourceLocation __CreateInstance(__IntPtr native, bool skipVTables = false)
|
||||||
{
|
{
|
||||||
|
@ -3040,6 +3041,14 @@ namespace CppSharp
|
||||||
__instance = *(global::CppSharp.Parser.SourceLocation.__Internal*) native;
|
__instance = *(global::CppSharp.Parser.SourceLocation.__Internal*) native;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public SourceLocation()
|
||||||
|
{
|
||||||
|
fixed (__Internal* __instancePtr = &__instance)
|
||||||
|
{
|
||||||
|
__Internal.ctor(new __IntPtr(__instancePtr));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public SourceLocation(uint ID)
|
public SourceLocation(uint ID)
|
||||||
: this()
|
: this()
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,7 @@ using __IntPtr = global::System.IntPtr;
|
||||||
[assembly:InternalsVisibleTo("CppSharp.CppParser")]
|
[assembly:InternalsVisibleTo("CppSharp.CppParser")]
|
||||||
|
|
||||||
#pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required
|
#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
|
namespace Std
|
||||||
{
|
{
|
||||||
|
|
|
@ -14,6 +14,7 @@ using System.Runtime.CompilerServices;
|
||||||
[assembly:InternalsVisibleTo("CppSharp.Parser")]
|
[assembly:InternalsVisibleTo("CppSharp.Parser")]
|
||||||
|
|
||||||
#pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required
|
#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
|
namespace CppSharp
|
||||||
{
|
{
|
||||||
|
@ -3017,7 +3018,7 @@ namespace CppSharp
|
||||||
}
|
}
|
||||||
|
|
||||||
private SourceLocation.__Internal __instance;
|
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)
|
internal static SourceLocation __CreateInstance(__IntPtr native, bool skipVTables = false)
|
||||||
{
|
{
|
||||||
|
@ -3040,6 +3041,14 @@ namespace CppSharp
|
||||||
__instance = *(global::CppSharp.Parser.SourceLocation.__Internal*) native;
|
__instance = *(global::CppSharp.Parser.SourceLocation.__Internal*) native;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public SourceLocation()
|
||||||
|
{
|
||||||
|
fixed (__Internal* __instancePtr = &__instance)
|
||||||
|
{
|
||||||
|
__Internal.ctor(new __IntPtr(__instancePtr));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public SourceLocation(uint ID)
|
public SourceLocation(uint ID)
|
||||||
: this()
|
: this()
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,7 @@ using __IntPtr = global::System.IntPtr;
|
||||||
[assembly:InternalsVisibleTo("CppSharp.CppParser")]
|
[assembly:InternalsVisibleTo("CppSharp.CppParser")]
|
||||||
|
|
||||||
#pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required
|
#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
|
namespace Std
|
||||||
{
|
{
|
||||||
|
|
|
@ -14,6 +14,7 @@ using System.Runtime.CompilerServices;
|
||||||
[assembly:InternalsVisibleTo("CppSharp.Parser")]
|
[assembly:InternalsVisibleTo("CppSharp.Parser")]
|
||||||
|
|
||||||
#pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required
|
#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
|
namespace CppSharp
|
||||||
{
|
{
|
||||||
|
@ -3017,7 +3018,7 @@ namespace CppSharp
|
||||||
}
|
}
|
||||||
|
|
||||||
private SourceLocation.__Internal __instance;
|
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)
|
internal static SourceLocation __CreateInstance(__IntPtr native, bool skipVTables = false)
|
||||||
{
|
{
|
||||||
|
@ -3040,6 +3041,14 @@ namespace CppSharp
|
||||||
__instance = *(global::CppSharp.Parser.SourceLocation.__Internal*) native;
|
__instance = *(global::CppSharp.Parser.SourceLocation.__Internal*) native;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public SourceLocation()
|
||||||
|
{
|
||||||
|
fixed (__Internal* __instancePtr = &__instance)
|
||||||
|
{
|
||||||
|
__Internal.ctor(new __IntPtr(__instancePtr));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public SourceLocation(uint ID)
|
public SourceLocation(uint ID)
|
||||||
: this()
|
: this()
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,7 @@ using __IntPtr = global::System.IntPtr;
|
||||||
[assembly:InternalsVisibleTo("CppSharp.CppParser")]
|
[assembly:InternalsVisibleTo("CppSharp.CppParser")]
|
||||||
|
|
||||||
#pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required
|
#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
|
namespace Std
|
||||||
{
|
{
|
||||||
|
@ -171,6 +172,15 @@ namespace Std
|
||||||
return;
|
return;
|
||||||
NativeToManagedMap.TryRemove(__Instance, out _);
|
NativeToManagedMap.TryRemove(__Instance, out _);
|
||||||
DisposePartial(disposing);
|
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)
|
if (__ownsNativeInstance)
|
||||||
Marshal.FreeHGlobal(__Instance);
|
Marshal.FreeHGlobal(__Instance);
|
||||||
__Instance = IntPtr.Zero;
|
__Instance = IntPtr.Zero;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче