Unverified Commit 9544136c authored by Vinicius Jarina's avatar Vinicius Jarina Committed by GitHub
Browse files

Fix build (#483)

* Fixing build

* Bump Source.Link 1.1.1
parent 94f2c180
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<copyright>Copyright © NLua 2023</copyright> <copyright>Copyright © NLua 2023</copyright>
<tags>lua nlua</tags> <tags>lua nlua</tags>
<dependencies> <dependencies>
<dependency id="KeraLua" version="1.3.2" /> <dependency id="KeraLua" version="1.3.3" />
</dependencies> </dependencies>
<packageTypes> <packageTypes>
<packageType name="SymbolsPackage" /> <packageType name="SymbolsPackage" />
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<copyright>Copyright © NLua 2023</copyright> <copyright>Copyright © NLua 2023</copyright>
<tags>lua nlua</tags> <tags>lua nlua</tags>
<dependencies> <dependencies>
<dependency id="KeraLua" version="1.3.2" /> <dependency id="KeraLua" version="1.3.3" />
</dependencies> </dependencies>
<repository type="git" url="https://github.com/nlua/nlua" commit="708ba30e982deccb1248d099806bc00e362fbda4" /> <repository type="git" url="https://github.com/nlua/nlua" commit="708ba30e982deccb1248d099806bc00e362fbda4" />
</metadata> </metadata>
......
...@@ -45,12 +45,12 @@ ...@@ -45,12 +45,12 @@
<Reference Include="Mono.Android" /> <Reference Include="Mono.Android" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.0"> <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<PrivateAssets>all</PrivateAssets> <PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference> </PackageReference>
<PackageReference Include="KeraLua"> <PackageReference Include="KeraLua">
<Version>1.3.2</Version> <Version>1.3.3</Version>
</PackageReference> </PackageReference>
</ItemGroup> </ItemGroup>
<Import Project="..\..\src\NLua.Shared.projitems" Label="Shared" Condition="Exists('..\..\src\NLua.Shared.projitems')" /> <Import Project="..\..\src\NLua.Shared.projitems" Label="Shared" Condition="Exists('..\..\src\NLua.Shared.projitems')" />
......
...@@ -37,12 +37,12 @@ ...@@ -37,12 +37,12 @@
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.0"> <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<PrivateAssets>all</PrivateAssets> <PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference> </PackageReference>
<PackageReference Include="KeraLua"> <PackageReference Include="KeraLua">
<Version>1.3.2</Version> <Version>1.3.3</Version>
</PackageReference> </PackageReference>
</ItemGroup> </ItemGroup>
<Import Project="..\..\src\NLua.Shared.projitems" Label="Shared" Condition="Exists('..\..\src\NLua.Shared.projitems')" /> <Import Project="..\..\src\NLua.Shared.projitems" Label="Shared" Condition="Exists('..\..\src\NLua.Shared.projitems')" />
......
...@@ -52,12 +52,12 @@ ...@@ -52,12 +52,12 @@
<Reference Include="Xamarin.TVOS" /> <Reference Include="Xamarin.TVOS" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.0"> <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<PrivateAssets>all</PrivateAssets> <PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference> </PackageReference>
<PackageReference Include="KeraLua"> <PackageReference Include="KeraLua">
<Version>1.3.2</Version> <Version>1.3.3</Version>
</PackageReference> </PackageReference>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
......
...@@ -45,12 +45,12 @@ ...@@ -45,12 +45,12 @@
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.0"> <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<PrivateAssets>all</PrivateAssets> <PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference> </PackageReference>
<PackageReference Include="KeraLua"> <PackageReference Include="KeraLua">
<Version>1.3.2</Version> <Version>1.3.3</Version>
</PackageReference> </PackageReference>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
......
...@@ -56,12 +56,12 @@ ...@@ -56,12 +56,12 @@
<Reference Include="Xamarin.iOS" /> <Reference Include="Xamarin.iOS" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.0"> <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<PrivateAssets>all</PrivateAssets> <PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference> </PackageReference>
<PackageReference Include="KeraLua"> <PackageReference Include="KeraLua">
<Version>1.3.2</Version> <Version>1.3.3</Version>
</PackageReference> </PackageReference>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
<MtouchHttpClientHandler> <MtouchHttpClientHandler>
</MtouchHttpClientHandler> </MtouchHttpClientHandler>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<CreatePackage>false</CreatePackage>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>portable</DebugType> <DebugType>portable</DebugType>
...@@ -47,14 +48,14 @@ ...@@ -47,14 +48,14 @@
<MtouchHttpClientHandler> <MtouchHttpClientHandler>
</MtouchHttpClientHandler> </MtouchHttpClientHandler>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<CreatePackage>false</CreatePackage>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.0"> <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<PrivateAssets>all</PrivateAssets> <PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference> </PackageReference>
<PackageReference Include="KeraLua"> <PackageReference Include="KeraLua" Version="1.3.3">
<Version>1.3.2</Version>
</PackageReference> </PackageReference>
</ItemGroup> </ItemGroup>
<Import Project="..\..\src\NLua.Shared.projitems" Label="Shared" Condition="Exists('..\..\src\NLua.Shared.projitems')" /> <Import Project="..\..\src\NLua.Shared.projitems" Label="Shared" Condition="Exists('..\..\src\NLua.Shared.projitems')" />
......
...@@ -49,12 +49,12 @@ ...@@ -49,12 +49,12 @@
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.0"> <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<PrivateAssets>all</PrivateAssets> <PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference> </PackageReference>
<PackageReference Include="KeraLua"> <PackageReference Include="KeraLua">
<Version>1.3.2</Version> <Version>1.3.3</Version>
</PackageReference> </PackageReference>
</ItemGroup> </ItemGroup>
<Import Project="..\..\src\NLua.Shared.projitems" Label="Shared" Condition="Exists('..\..\src\NLua.Shared.projitems')" /> <Import Project="..\..\src\NLua.Shared.projitems" Label="Shared" Condition="Exists('..\..\src\NLua.Shared.projitems')" />
......
...@@ -65,12 +65,12 @@ ...@@ -65,12 +65,12 @@
<Folder Include="Properties\" /> <Folder Include="Properties\" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.0"> <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<PrivateAssets>all</PrivateAssets> <PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference> </PackageReference>
<PackageReference Include="KeraLua"> <PackageReference Include="KeraLua">
<Version>1.3.2</Version> <Version>1.3.3</Version>
</PackageReference> </PackageReference>
</ItemGroup> </ItemGroup>
<Import Project="..\..\src\NLua.Shared.projitems" Label="Shared" Condition="Exists('..\..\src\NLua.Shared.projitems')" /> <Import Project="..\..\src\NLua.Shared.projitems" Label="Shared" Condition="Exists('..\..\src\NLua.Shared.projitems')" />
......
...@@ -57,12 +57,12 @@ ...@@ -57,12 +57,12 @@
<Folder Include="Properties\" /> <Folder Include="Properties\" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.0"> <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<PrivateAssets>all</PrivateAssets> <PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference> </PackageReference>
<PackageReference Include="KeraLua"> <PackageReference Include="KeraLua">
<Version>1.3.2</Version> <Version>1.3.3</Version>
</PackageReference> </PackageReference>
</ItemGroup> </ItemGroup>
<Import Project="..\..\src\NLua.Shared.projitems" Label="Shared" Condition="Exists('..\..\src\NLua.Shared.projitems')" /> <Import Project="..\..\src\NLua.Shared.projitems" Label="Shared" Condition="Exists('..\..\src\NLua.Shared.projitems')" />
......
...@@ -40,12 +40,12 @@ ...@@ -40,12 +40,12 @@
<Reference Include="System" /> <Reference Include="System" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.0"> <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<PrivateAssets>all</PrivateAssets> <PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference> </PackageReference>
<PackageReference Include="KeraLua"> <PackageReference Include="KeraLua">
<Version>1.3.2</Version> <Version>1.3.3</Version>
</PackageReference> </PackageReference>
</ItemGroup> </ItemGroup>
<Import Project="..\..\src\NLua.Shared.projitems" Label="Shared" Condition="Exists('..\..\src\NLua.Shared.projitems')" /> <Import Project="..\..\src\NLua.Shared.projitems" Label="Shared" Condition="Exists('..\..\src\NLua.Shared.projitems')" />
......
...@@ -22,14 +22,14 @@ ...@@ -22,14 +22,14 @@
<WarningsAsErrors /> <WarningsAsErrors />
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.0"> <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<PrivateAssets>all</PrivateAssets> <PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference> </PackageReference>
</ItemGroup> </ItemGroup>
<Import Project="..\..\src\NLua.Shared.projitems" Label="Shared" Condition="Exists('..\..\src\NLua.Shared.projitems')" /> <Import Project="..\..\src\NLua.Shared.projitems" Label="Shared" Condition="Exists('..\..\src\NLua.Shared.projitems')" />
<ItemGroup> <ItemGroup>
<PackageReference Include="KeraLua" Version="1.3.2"> <PackageReference Include="KeraLua" Version="1.3.3">
</PackageReference> </PackageReference>
<PackageReference Include="System.Reflection.Emit" Version="4.7.0" /> <PackageReference Include="System.Reflection.Emit" Version="4.7.0" />
<PackageReference Include="System.Reflection.Emit.ILGeneration" Version="4.7.0" /> <PackageReference Include="System.Reflection.Emit.ILGeneration" Version="4.7.0" />
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.0"> <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<PrivateAssets>all</PrivateAssets> <PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference> </PackageReference>
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
<Import Project="..\..\src\NLua.Shared.projitems" Label="Shared" /> <Import Project="..\..\src\NLua.Shared.projitems" Label="Shared" />
<ItemGroup> <ItemGroup>
<PackageReference Include="KeraLua" Version="1.3.2"> <PackageReference Include="KeraLua" Version="1.3.3">
</PackageReference> </PackageReference>
</ItemGroup> </ItemGroup>
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="KeraLua"> <PackageReference Include="KeraLua">
<Version>1.3.2</Version> <Version>1.3.3</Version>
</PackageReference> </PackageReference>
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform"> <PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform">
<Version>6.2.13</Version> <Version>6.2.13</Version>
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
<VisualStudioVersion>14.0</VisualStudioVersion> <VisualStudioVersion>14.0</VisualStudioVersion>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.0"> <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<PrivateAssets>all</PrivateAssets> <PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference> </PackageReference>
......
...@@ -338,7 +338,9 @@ namespace NLua ...@@ -338,7 +338,9 @@ namespace NLua
} }
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__ #if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[MonoPInvokeCallback(typeof(LuaNativeFunction))] [MonoPInvokeCallback(typeof(LuaNativeFunction))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif #endif
static int PanicCallback(IntPtr state) static int PanicCallback(IntPtr state)
{ {
...@@ -1028,7 +1030,9 @@ namespace NLua ...@@ -1028,7 +1030,9 @@ namespace NLua
/// <param name = "luaDebug">Pointer to LuaDebug (lua_debug) structure</param> /// <param name = "luaDebug">Pointer to LuaDebug (lua_debug) structure</param>
/// ///
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__ #if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[MonoPInvokeCallback(typeof(LuaHookFunction))] [MonoPInvokeCallback(typeof(LuaHookFunction))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif #endif
static void DebugHookCallback(IntPtr luaState, IntPtr luaDebug) static void DebugHookCallback(IntPtr luaState, IntPtr luaDebug)
{ {
......
...@@ -86,7 +86,9 @@ namespace NLua ...@@ -86,7 +86,9 @@ namespace NLua
* __call metafunction of CLR delegates, retrieves and calls the delegate. * __call metafunction of CLR delegates, retrieves and calls the delegate.
*/ */
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__ #if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[MonoPInvokeCallback(typeof(LuaNativeFunction))] [MonoPInvokeCallback(typeof(LuaNativeFunction))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif #endif
private static int RunFunctionDelegate(IntPtr luaState) private static int RunFunctionDelegate(IntPtr luaState)
{ {
...@@ -109,7 +111,9 @@ namespace NLua ...@@ -109,7 +111,9 @@ namespace NLua
* __gc metafunction of CLR objects. * __gc metafunction of CLR objects.
*/ */
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__ #if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[MonoPInvokeCallback(typeof(LuaNativeFunction))] [MonoPInvokeCallback(typeof(LuaNativeFunction))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif #endif
private static int CollectObject(IntPtr state) private static int CollectObject(IntPtr state)
{ {
...@@ -132,7 +136,9 @@ namespace NLua ...@@ -132,7 +136,9 @@ namespace NLua
* __tostring metafunction of CLR objects. * __tostring metafunction of CLR objects.
*/ */
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__ #if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[MonoPInvokeCallback(typeof(LuaNativeFunction))] [MonoPInvokeCallback(typeof(LuaNativeFunction))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif #endif
private static int ToStringLua(IntPtr state) private static int ToStringLua(IntPtr state)
{ {
...@@ -158,7 +164,9 @@ namespace NLua ...@@ -158,7 +164,9 @@ namespace NLua
* __add metafunction of CLR objects. * __add metafunction of CLR objects.
*/ */
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__ #if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[MonoPInvokeCallback(typeof(LuaNativeFunction))] [MonoPInvokeCallback(typeof(LuaNativeFunction))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif #endif
static int AddLua(IntPtr luaState) static int AddLua(IntPtr luaState)
{ {
...@@ -176,7 +184,9 @@ namespace NLua ...@@ -176,7 +184,9 @@ namespace NLua
* __sub metafunction of CLR objects. * __sub metafunction of CLR objects.
*/ */
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__ #if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[MonoPInvokeCallback(typeof(LuaNativeFunction))] [MonoPInvokeCallback(typeof(LuaNativeFunction))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif #endif
static int SubtractLua(IntPtr luaState) static int SubtractLua(IntPtr luaState)
{ {
...@@ -194,7 +204,9 @@ namespace NLua ...@@ -194,7 +204,9 @@ namespace NLua
* __mul metafunction of CLR objects. * __mul metafunction of CLR objects.
*/ */
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__ #if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[MonoPInvokeCallback(typeof(LuaNativeFunction))] [MonoPInvokeCallback(typeof(LuaNativeFunction))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif #endif
static int MultiplyLua(IntPtr luaState) static int MultiplyLua(IntPtr luaState)
{ {
...@@ -212,7 +224,9 @@ namespace NLua ...@@ -212,7 +224,9 @@ namespace NLua
* __div metafunction of CLR objects. * __div metafunction of CLR objects.
*/ */
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__ #if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[MonoPInvokeCallback(typeof(LuaNativeFunction))] [MonoPInvokeCallback(typeof(LuaNativeFunction))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif #endif
static int DivideLua(IntPtr luaState) static int DivideLua(IntPtr luaState)
{ {
...@@ -230,7 +244,9 @@ namespace NLua ...@@ -230,7 +244,9 @@ namespace NLua
* __mod metafunction of CLR objects. * __mod metafunction of CLR objects.
*/ */
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__ #if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[MonoPInvokeCallback(typeof(LuaNativeFunction))] [MonoPInvokeCallback(typeof(LuaNativeFunction))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif #endif
static int ModLua(IntPtr luaState) static int ModLua(IntPtr luaState)
{ {
...@@ -248,7 +264,9 @@ namespace NLua ...@@ -248,7 +264,9 @@ namespace NLua
* __unm metafunction of CLR objects. * __unm metafunction of CLR objects.
*/ */
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__ #if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[MonoPInvokeCallback(typeof(LuaNativeFunction))] [MonoPInvokeCallback(typeof(LuaNativeFunction))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif #endif
static int UnaryNegationLua(IntPtr luaState) static int UnaryNegationLua(IntPtr luaState)
{ {
...@@ -290,7 +308,9 @@ namespace NLua ...@@ -290,7 +308,9 @@ namespace NLua
* __eq metafunction of CLR objects. * __eq metafunction of CLR objects.
*/ */
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__ #if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[MonoPInvokeCallback(typeof(LuaNativeFunction))] [MonoPInvokeCallback(typeof(LuaNativeFunction))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif #endif
static int EqualLua(IntPtr luaState) static int EqualLua(IntPtr luaState)
{ {
...@@ -308,7 +328,9 @@ namespace NLua ...@@ -308,7 +328,9 @@ namespace NLua
* __lt metafunction of CLR objects. * __lt metafunction of CLR objects.
*/ */
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__ #if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[MonoPInvokeCallback(typeof(LuaNativeFunction))] [MonoPInvokeCallback(typeof(LuaNativeFunction))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif #endif
static int LessThanLua(IntPtr luaState) static int LessThanLua(IntPtr luaState)
{ {
...@@ -326,7 +348,9 @@ namespace NLua ...@@ -326,7 +348,9 @@ namespace NLua
* __le metafunction of CLR objects. * __le metafunction of CLR objects.
*/ */
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__ #if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[MonoPInvokeCallback(typeof(LuaNativeFunction))] [MonoPInvokeCallback(typeof(LuaNativeFunction))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif #endif
static int LessThanOrEqualLua(IntPtr luaState) static int LessThanOrEqualLua(IntPtr luaState)
{ {
...@@ -376,7 +400,9 @@ namespace NLua ...@@ -376,7 +400,9 @@ namespace NLua
* If the member does not exist returns nil. * If the member does not exist returns nil.
*/ */
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__ #if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[MonoPInvokeCallback(typeof(LuaNativeFunction))] [MonoPInvokeCallback(typeof(LuaNativeFunction))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif #endif
private static int GetMethod(IntPtr state) private static int GetMethod(IntPtr state)
{ {
...@@ -680,7 +706,9 @@ namespace NLua ...@@ -680,7 +706,9 @@ namespace NLua
* Adds a prefix to the method name to call the base version of the method. * Adds a prefix to the method name to call the base version of the method.
*/ */
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__ #if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[MonoPInvokeCallback(typeof(LuaNativeFunction))] [MonoPInvokeCallback(typeof(LuaNativeFunction))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif #endif
private static int GetBaseMethod(IntPtr state) private static int GetBaseMethod(IntPtr state)
{ {
...@@ -983,7 +1011,9 @@ namespace NLua ...@@ -983,7 +1011,9 @@ namespace NLua
* and error if the assignment is invalid. * and error if the assignment is invalid.
*/ */
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__ #if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[MonoPInvokeCallback(typeof(LuaNativeFunction))] [MonoPInvokeCallback(typeof(LuaNativeFunction))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif #endif
private static int SetFieldOrProperty(IntPtr state) private static int SetFieldOrProperty(IntPtr state)
{ {
...@@ -1188,7 +1218,9 @@ namespace NLua ...@@ -1188,7 +1218,9 @@ namespace NLua
* __index metafunction of type references, works on static members. * __index metafunction of type references, works on static members.
*/ */
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__ #if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[MonoPInvokeCallback(typeof(LuaNativeFunction))] [MonoPInvokeCallback(typeof(LuaNativeFunction))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif #endif
private static int GetClassMethod(IntPtr state) private static int GetClassMethod(IntPtr state)
{ {
...@@ -1234,7 +1266,9 @@ namespace NLua ...@@ -1234,7 +1266,9 @@ namespace NLua
* __newindex function of type references, works on static members. * __newindex function of type references, works on static members.
*/ */
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__ #if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[MonoPInvokeCallback(typeof(LuaNativeFunction))] [MonoPInvokeCallback(typeof(LuaNativeFunction))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif #endif
private static int SetClassFieldOrProperty(IntPtr state) private static int SetClassFieldOrProperty(IntPtr state)
{ {
...@@ -1266,7 +1300,9 @@ namespace NLua ...@@ -1266,7 +1300,9 @@ namespace NLua
* __call metafunction of Delegates. * __call metafunction of Delegates.
*/ */
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__ #if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[MonoPInvokeCallback(typeof(LuaNativeFunction))] [MonoPInvokeCallback(typeof(LuaNativeFunction))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif #endif
static int CallDelegate(IntPtr state) static int CallDelegate(IntPtr state)
{ {
...@@ -1335,7 +1371,9 @@ namespace NLua ...@@ -1335,7 +1371,9 @@ namespace NLua
* generates an exception. * generates an exception.
*/ */
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__ #if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[MonoPInvokeCallback(typeof(LuaNativeFunction))] [MonoPInvokeCallback(typeof(LuaNativeFunction))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif #endif
private static int CallConstructor(IntPtr state) private static int CallConstructor(IntPtr state)
{ {
......
...@@ -247,7 +247,9 @@ namespace NLua ...@@ -247,7 +247,9 @@ namespace NLua
* if the assembly is not found. * if the assembly is not found.
*/ */
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__ #if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[MonoPInvokeCallback(typeof(LuaNativeFunction))] [MonoPInvokeCallback(typeof(LuaNativeFunction))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif #endif
private static int LoadAssembly(IntPtr luaState) private static int LoadAssembly(IntPtr luaState)
{ {
...@@ -351,7 +353,9 @@ namespace NLua ...@@ -351,7 +353,9 @@ namespace NLua
* type is not found. * type is not found.
*/ */
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__ #if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[MonoPInvokeCallback(typeof(LuaNativeFunction))] [MonoPInvokeCallback(typeof(LuaNativeFunction))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif #endif
private static int ImportType(IntPtr luaState) private static int ImportType(IntPtr luaState)
{ {
...@@ -379,7 +383,9 @@ namespace NLua ...@@ -379,7 +383,9 @@ namespace NLua
* type passed as second argument in the stack. * type passed as second argument in the stack.
*/ */
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__ #if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[MonoPInvokeCallback(typeof(LuaNativeFunction))] [MonoPInvokeCallback(typeof(LuaNativeFunction))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif #endif
private static int RegisterTable(IntPtr luaState) private static int RegisterTable(IntPtr luaState)
{ {
...@@ -446,7 +452,9 @@ namespace NLua ...@@ -446,7 +452,9 @@ namespace NLua
* base field, freeing the created object for garbage-collection * base field, freeing the created object for garbage-collection
*/ */
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__ #if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[MonoPInvokeCallback(typeof(LuaNativeFunction))] [MonoPInvokeCallback(typeof(LuaNativeFunction))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif #endif
private static int UnregisterTable(IntPtr luaState) private static int UnregisterTable(IntPtr luaState)
{ {
...@@ -503,7 +511,9 @@ namespace NLua ...@@ -503,7 +511,9 @@ namespace NLua
* if no matching method is not found. * if no matching method is not found.
*/ */
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__ #if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[MonoPInvokeCallback(typeof(LuaNativeFunction))] [MonoPInvokeCallback(typeof(LuaNativeFunction))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif #endif
private static int GetMethodSignature(IntPtr luaState) private static int GetMethodSignature(IntPtr luaState)
{ {
...@@ -568,7 +578,9 @@ namespace NLua ...@@ -568,7 +578,9 @@ namespace NLua
* if no matching constructor is found. * if no matching constructor is found.
*/ */
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__ #if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[MonoPInvokeCallback(typeof(LuaNativeFunction))] [MonoPInvokeCallback(typeof(LuaNativeFunction))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif #endif
private static int GetConstructorSignature(IntPtr luaState) private static int GetConstructorSignature(IntPtr luaState)
{ {
...@@ -1131,7 +1143,9 @@ namespace NLua ...@@ -1131,7 +1143,9 @@ namespace NLua
} }
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__ #if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[MonoPInvokeCallback(typeof(LuaNativeFunction))] [MonoPInvokeCallback(typeof(LuaNativeFunction))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif #endif
private static int CType(IntPtr luaState) private static int CType(IntPtr luaState)
{ {
...@@ -1151,7 +1165,9 @@ namespace NLua ...@@ -1151,7 +1165,9 @@ namespace NLua
} }
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__ #if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[MonoPInvokeCallback(typeof(LuaNativeFunction))] [MonoPInvokeCallback(typeof(LuaNativeFunction))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif #endif
private static int EnumFromInt(IntPtr luaState) private static int EnumFromInt(IntPtr luaState)
{ {
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="KeraLua"> <PackageReference Include="KeraLua">
<Version>1.3.2</Version> <Version>1.3.3</Version>
</PackageReference> </PackageReference>
<PackageReference Include="NUnit"> <PackageReference Include="NUnit">
<Version>3.13.2</Version> <Version>3.13.2</Version>
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="KeraLua" Version="1.3.2"> <PackageReference Include="KeraLua" Version="1.3.3">
</PackageReference> </PackageReference>
<PackageReference Include="nunit" Version="3.13.2" /> <PackageReference Include="nunit" Version="3.13.2" />
<PackageReference Include="NUnit3TestAdapter" Version="4.1.0"><IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> <PackageReference Include="NUnit3TestAdapter" Version="4.1.0"><IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment