* regenerated bindings

* regenerated bindings after rebase

* Directory.Build.props: support C# 10.0
This commit is contained in:
deadlocklogic 2023-12-17 13:08:34 +02:00 коммит произвёл GitHub
Родитель 24d1a8491d
Коммит 2ecd9528ff
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
13 изменённых файлов: 1083 добавлений и 1005 удалений

Просмотреть файл

@ -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;