Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
NLua
Commits
9544136c
Unverified
Commit
9544136c
authored
Mar 14, 2023
by
Vinicius Jarina
Committed by
GitHub
Mar 14, 2023
Browse files
Fix build (#483)
* Fixing build * Bump Source.Link 1.1.1
parent
94f2c180
Changes
22
Show whitespace changes
Inline
Side-by-side
NLua.Symbol.nuspec
View file @
9544136c
...
...
@@ -15,7 +15,7 @@
<copyright>
Copyright © NLua 2023
</copyright>
<tags>
lua nlua
</tags>
<dependencies>
<dependency
id=
"KeraLua"
version=
"1.3.
2
"
/>
<dependency
id=
"KeraLua"
version=
"1.3.
3
"
/>
</dependencies>
<packageTypes>
<packageType
name=
"SymbolsPackage"
/>
...
...
NLua.nuspec
View file @
9544136c
...
...
@@ -15,7 +15,7 @@
<copyright>
Copyright © NLua 2023
</copyright>
<tags>
lua nlua
</tags>
<dependencies>
<dependency
id=
"KeraLua"
version=
"1.3.
2
"
/>
<dependency
id=
"KeraLua"
version=
"1.3.
3
"
/>
</dependencies>
<repository
type=
"git"
url=
"https://github.com/nlua/nlua"
commit=
"708ba30e982deccb1248d099806bc00e362fbda4"
/>
</metadata>
...
...
build/Android/NLua.Android.csproj
View file @
9544136c
...
...
@@ -45,12 +45,12 @@
<Reference
Include=
"Mono.Android"
/>
</ItemGroup>
<ItemGroup>
<PackageReference
Include=
"Microsoft.SourceLink.GitHub"
Version=
"1.1.
0
"
>
<PackageReference
Include=
"Microsoft.SourceLink.GitHub"
Version=
"1.1.
1
"
>
<PrivateAssets>
all
</PrivateAssets>
<IncludeAssets>
runtime; build; native; contentfiles; analyzers
</IncludeAssets>
</PackageReference>
<PackageReference
Include=
"KeraLua"
>
<Version>
1.3.
2
</Version>
<Version>
1.3.
3
</Version>
</PackageReference>
</ItemGroup>
<Import
Project=
"..\..\src\NLua.Shared.projitems"
Label=
"Shared"
Condition=
"Exists('..\..\src\NLua.Shared.projitems')"
/>
...
...
build/Android/NLua.net6.0-android.csproj
View file @
9544136c
...
...
@@ -37,12 +37,12 @@
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.
0
">
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.
1
">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageReference Include="KeraLua">
<Version>1.3.
2
</Version>
<Version>1.3.
3
</Version>
</PackageReference>
</ItemGroup>
<Import Project="..\..\src\NLua.Shared.projitems" Label="Shared" Condition="Exists('..\..\src\NLua.Shared.projitems')" />
...
...
build/TVOS/NLua.TVOS.csproj
View file @
9544136c
...
...
@@ -52,12 +52,12 @@
<Reference
Include=
"Xamarin.TVOS"
/>
</ItemGroup>
<ItemGroup>
<PackageReference
Include=
"Microsoft.SourceLink.GitHub"
Version=
"1.1.
0
"
>
<PackageReference
Include=
"Microsoft.SourceLink.GitHub"
Version=
"1.1.
1
"
>
<PrivateAssets>
all
</PrivateAssets>
<IncludeAssets>
runtime; build; native; contentfiles; analyzers
</IncludeAssets>
</PackageReference>
<PackageReference
Include=
"KeraLua"
>
<Version>
1.3.
2
</Version>
<Version>
1.3.
3
</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
...
...
build/TVOS/NLua.net6.0-tvos.csproj
View file @
9544136c
...
...
@@ -45,12 +45,12 @@
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.
0
">
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.
1
">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageReference Include="KeraLua">
<Version>1.3.
2
</Version>
<Version>1.3.
3
</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
...
...
build/iOS/NLua.XamariniOS.csproj
View file @
9544136c
...
...
@@ -56,12 +56,12 @@
<Reference
Include=
"Xamarin.iOS"
/>
</ItemGroup>
<ItemGroup>
<PackageReference
Include=
"Microsoft.SourceLink.GitHub"
Version=
"1.1.
0
"
>
<PackageReference
Include=
"Microsoft.SourceLink.GitHub"
Version=
"1.1.
1
"
>
<PrivateAssets>
all
</PrivateAssets>
<IncludeAssets>
runtime; build; native; contentfiles; analyzers
</IncludeAssets>
</PackageReference>
<PackageReference
Include=
"KeraLua"
>
<Version>
1.3.
2
</Version>
<Version>
1.3.
3
</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
...
...
build/iOS/NLua.net6.0-ios.csproj
View file @
9544136c
...
...
@@ -30,6 +30,7 @@
<MtouchHttpClientHandler>
</MtouchHttpClientHandler>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<CreatePackage>false</CreatePackage>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>portable</DebugType>
...
...
@@ -47,14 +48,14 @@
<MtouchHttpClientHandler>
</MtouchHttpClientHandler>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<CreatePackage>false</CreatePackage>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.
0
">
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.
1
">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageReference Include="KeraLua">
<Version>1.3.2</Version>
<PackageReference Include="KeraLua" Version="1.3.3">
</PackageReference>
</ItemGroup>
<Import Project="..\..\src\NLua.Shared.projitems" Label="Shared" Condition="Exists('..\..\src\NLua.Shared.projitems')" />
...
...
build/iOS/NLua.net6.0-maccatalyst.csproj
View file @
9544136c
...
...
@@ -49,12 +49,12 @@
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.
0
">
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.
1
">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageReference Include="KeraLua">
<Version>1.3.
2
</Version>
<Version>1.3.
3
</Version>
</PackageReference>
</ItemGroup>
<Import Project="..\..\src\NLua.Shared.projitems" Label="Shared" Condition="Exists('..\..\src\NLua.Shared.projitems')" />
...
...
build/macOS/NLua.XamarinMac.csproj
View file @
9544136c
...
...
@@ -65,12 +65,12 @@
<Folder
Include=
"Properties\"
/>
</ItemGroup>
<ItemGroup>
<PackageReference
Include=
"Microsoft.SourceLink.GitHub"
Version=
"1.1.
0
"
>
<PackageReference
Include=
"Microsoft.SourceLink.GitHub"
Version=
"1.1.
1
"
>
<PrivateAssets>
all
</PrivateAssets>
<IncludeAssets>
runtime; build; native; contentfiles; analyzers
</IncludeAssets>
</PackageReference>
<PackageReference
Include=
"KeraLua"
>
<Version>
1.3.
2
</Version>
<Version>
1.3.
3
</Version>
</PackageReference>
</ItemGroup>
<Import
Project=
"..\..\src\NLua.Shared.projitems"
Label=
"Shared"
Condition=
"Exists('..\..\src\NLua.Shared.projitems')"
/>
...
...
build/macOS/NLua.net6.0-macos.csproj
View file @
9544136c
...
...
@@ -57,12 +57,12 @@
<Folder Include="Properties\" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.
0
">
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.
1
">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageReference Include="KeraLua">
<Version>1.3.
2
</Version>
<Version>1.3.
3
</Version>
</PackageReference>
</ItemGroup>
<Import Project="..\..\src\NLua.Shared.projitems" Label="Shared" Condition="Exists('..\..\src\NLua.Shared.projitems')" />
...
...
build/net46/NLua.csproj
View file @
9544136c
...
...
@@ -40,12 +40,12 @@
<Reference
Include=
"System"
/>
</ItemGroup>
<ItemGroup>
<PackageReference
Include=
"Microsoft.SourceLink.GitHub"
Version=
"1.1.
0
"
>
<PackageReference
Include=
"Microsoft.SourceLink.GitHub"
Version=
"1.1.
1
"
>
<PrivateAssets>
all
</PrivateAssets>
<IncludeAssets>
runtime; build; native; contentfiles; analyzers
</IncludeAssets>
</PackageReference>
<PackageReference
Include=
"KeraLua"
>
<Version>
1.3.
2
</Version>
<Version>
1.3.
3
</Version>
</PackageReference>
</ItemGroup>
<Import
Project=
"..\..\src\NLua.Shared.projitems"
Label=
"Shared"
Condition=
"Exists('..\..\src\NLua.Shared.projitems')"
/>
...
...
build/net6.0/NLua.net6.0.csproj
View file @
9544136c
...
...
@@ -22,14 +22,14 @@
<WarningsAsErrors />
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.
0
">
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.
1
">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>
<Import Project="..\..\src\NLua.Shared.projitems" Label="Shared" Condition="Exists('..\..\src\NLua.Shared.projitems')" />
<ItemGroup>
<PackageReference Include="KeraLua" Version="1.3.
2
">
<PackageReference Include="KeraLua" Version="1.3.
3
">
</PackageReference>
<PackageReference Include="System.Reflection.Emit" Version="4.7.0" />
<PackageReference Include="System.Reflection.Emit.ILGeneration" Version="4.7.0" />
...
...
build/netstandard2.0/NLua.netstandard2.0.csproj
View file @
9544136c
...
...
@@ -24,7 +24,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.
0
">
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.
1
">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
...
...
@@ -33,7 +33,7 @@
<Import Project="..\..\src\NLua.Shared.projitems" Label="Shared" />
<ItemGroup>
<PackageReference Include="KeraLua" Version="1.3.
2
">
<PackageReference Include="KeraLua" Version="1.3.
3
">
</PackageReference>
</ItemGroup>
...
...
build/uap10.0/NLua.UWP.csproj
View file @
9544136c
...
...
@@ -44,7 +44,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference
Include=
"KeraLua"
>
<Version>
1.3.
2
</Version>
<Version>
1.3.
3
</Version>
</PackageReference>
<PackageReference
Include=
"Microsoft.NETCore.UniversalWindowsPlatform"
>
<Version>
6.2.13
</Version>
...
...
@@ -54,7 +54,7 @@
<VisualStudioVersion>
14.0
</VisualStudioVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference
Include=
"Microsoft.SourceLink.GitHub"
Version=
"1.1.
0
"
>
<PackageReference
Include=
"Microsoft.SourceLink.GitHub"
Version=
"1.1.
1
"
>
<PrivateAssets>
all
</PrivateAssets>
<IncludeAssets>
runtime; build; native; contentfiles; analyzers
</IncludeAssets>
</PackageReference>
...
...
src/Lua.cs
View file @
9544136c
...
...
@@ -338,7 +338,9 @@ namespace NLua
}
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[
MonoPInvokeCallback
(
typeof
(
LuaNativeFunction
))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif
static
int
PanicCallback
(
IntPtr
state
)
{
...
...
@@ -1028,7 +1030,9 @@ namespace NLua
/// <param name = "luaDebug">Pointer to LuaDebug (lua_debug) structure</param>
///
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[
MonoPInvokeCallback
(
typeof
(
LuaHookFunction
))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif
static
void
DebugHookCallback
(
IntPtr
luaState
,
IntPtr
luaDebug
)
{
...
...
src/Metatables.cs
View file @
9544136c
...
...
@@ -86,7 +86,9 @@ namespace NLua
* __call metafunction of CLR delegates, retrieves and calls the delegate.
*/
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[
MonoPInvokeCallback
(
typeof
(
LuaNativeFunction
))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif
private
static
int
RunFunctionDelegate
(
IntPtr
luaState
)
{
...
...
@@ -109,7 +111,9 @@ namespace NLua
* __gc metafunction of CLR objects.
*/
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[
MonoPInvokeCallback
(
typeof
(
LuaNativeFunction
))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif
private
static
int
CollectObject
(
IntPtr
state
)
{
...
...
@@ -132,7 +136,9 @@ namespace NLua
* __tostring metafunction of CLR objects.
*/
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[
MonoPInvokeCallback
(
typeof
(
LuaNativeFunction
))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif
private
static
int
ToStringLua
(
IntPtr
state
)
{
...
...
@@ -158,7 +164,9 @@ namespace NLua
* __add metafunction of CLR objects.
*/
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[
MonoPInvokeCallback
(
typeof
(
LuaNativeFunction
))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif
static
int
AddLua
(
IntPtr
luaState
)
{
...
...
@@ -176,7 +184,9 @@ namespace NLua
* __sub metafunction of CLR objects.
*/
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[
MonoPInvokeCallback
(
typeof
(
LuaNativeFunction
))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif
static
int
SubtractLua
(
IntPtr
luaState
)
{
...
...
@@ -194,7 +204,9 @@ namespace NLua
* __mul metafunction of CLR objects.
*/
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[
MonoPInvokeCallback
(
typeof
(
LuaNativeFunction
))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif
static
int
MultiplyLua
(
IntPtr
luaState
)
{
...
...
@@ -212,7 +224,9 @@ namespace NLua
* __div metafunction of CLR objects.
*/
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[
MonoPInvokeCallback
(
typeof
(
LuaNativeFunction
))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif
static
int
DivideLua
(
IntPtr
luaState
)
{
...
...
@@ -230,7 +244,9 @@ namespace NLua
* __mod metafunction of CLR objects.
*/
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[
MonoPInvokeCallback
(
typeof
(
LuaNativeFunction
))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif
static
int
ModLua
(
IntPtr
luaState
)
{
...
...
@@ -248,7 +264,9 @@ namespace NLua
* __unm metafunction of CLR objects.
*/
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[
MonoPInvokeCallback
(
typeof
(
LuaNativeFunction
))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif
static
int
UnaryNegationLua
(
IntPtr
luaState
)
{
...
...
@@ -290,7 +308,9 @@ namespace NLua
* __eq metafunction of CLR objects.
*/
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[
MonoPInvokeCallback
(
typeof
(
LuaNativeFunction
))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif
static
int
EqualLua
(
IntPtr
luaState
)
{
...
...
@@ -308,7 +328,9 @@ namespace NLua
* __lt metafunction of CLR objects.
*/
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[
MonoPInvokeCallback
(
typeof
(
LuaNativeFunction
))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif
static
int
LessThanLua
(
IntPtr
luaState
)
{
...
...
@@ -326,7 +348,9 @@ namespace NLua
* __le metafunction of CLR objects.
*/
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[
MonoPInvokeCallback
(
typeof
(
LuaNativeFunction
))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif
static
int
LessThanOrEqualLua
(
IntPtr
luaState
)
{
...
...
@@ -376,7 +400,9 @@ namespace NLua
* If the member does not exist returns nil.
*/
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[
MonoPInvokeCallback
(
typeof
(
LuaNativeFunction
))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif
private
static
int
GetMethod
(
IntPtr
state
)
{
...
...
@@ -680,7 +706,9 @@ namespace NLua
* Adds a prefix to the method name to call the base version of the method.
*/
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[
MonoPInvokeCallback
(
typeof
(
LuaNativeFunction
))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif
private
static
int
GetBaseMethod
(
IntPtr
state
)
{
...
...
@@ -983,7 +1011,9 @@ namespace NLua
* and error if the assignment is invalid.
*/
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[
MonoPInvokeCallback
(
typeof
(
LuaNativeFunction
))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif
private
static
int
SetFieldOrProperty
(
IntPtr
state
)
{
...
...
@@ -1188,7 +1218,9 @@ namespace NLua
* __index metafunction of type references, works on static members.
*/
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[
MonoPInvokeCallback
(
typeof
(
LuaNativeFunction
))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif
private
static
int
GetClassMethod
(
IntPtr
state
)
{
...
...
@@ -1234,7 +1266,9 @@ namespace NLua
* __newindex function of type references, works on static members.
*/
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[
MonoPInvokeCallback
(
typeof
(
LuaNativeFunction
))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif
private
static
int
SetClassFieldOrProperty
(
IntPtr
state
)
{
...
...
@@ -1266,7 +1300,9 @@ namespace NLua
* __call metafunction of Delegates.
*/
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[
MonoPInvokeCallback
(
typeof
(
LuaNativeFunction
))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif
static
int
CallDelegate
(
IntPtr
state
)
{
...
...
@@ -1335,7 +1371,9 @@ namespace NLua
* generates an exception.
*/
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[
MonoPInvokeCallback
(
typeof
(
LuaNativeFunction
))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif
private
static
int
CallConstructor
(
IntPtr
state
)
{
...
...
src/ObjectTranslator.cs
View file @
9544136c
...
...
@@ -247,7 +247,9 @@ namespace NLua
* if the assembly is not found.
*/
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[
MonoPInvokeCallback
(
typeof
(
LuaNativeFunction
))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif
private
static
int
LoadAssembly
(
IntPtr
luaState
)
{
...
...
@@ -351,7 +353,9 @@ namespace NLua
* type is not found.
*/
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[
MonoPInvokeCallback
(
typeof
(
LuaNativeFunction
))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif
private
static
int
ImportType
(
IntPtr
luaState
)
{
...
...
@@ -379,7 +383,9 @@ namespace NLua
* type passed as second argument in the stack.
*/
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[
MonoPInvokeCallback
(
typeof
(
LuaNativeFunction
))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif
private
static
int
RegisterTable
(
IntPtr
luaState
)
{
...
...
@@ -446,7 +452,9 @@ namespace NLua
* base field, freeing the created object for garbage-collection
*/
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[
MonoPInvokeCallback
(
typeof
(
LuaNativeFunction
))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif
private
static
int
UnregisterTable
(
IntPtr
luaState
)
{
...
...
@@ -503,7 +511,9 @@ namespace NLua
* if no matching method is not found.
*/
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[
MonoPInvokeCallback
(
typeof
(
LuaNativeFunction
))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif
private
static
int
GetMethodSignature
(
IntPtr
luaState
)
{
...
...
@@ -568,7 +578,9 @@ namespace NLua
* if no matching constructor is found.
*/
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[
MonoPInvokeCallback
(
typeof
(
LuaNativeFunction
))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif
private
static
int
GetConstructorSignature
(
IntPtr
luaState
)
{
...
...
@@ -1131,7 +1143,9 @@ namespace NLua
}
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[
MonoPInvokeCallback
(
typeof
(
LuaNativeFunction
))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif
private
static
int
CType
(
IntPtr
luaState
)
{
...
...
@@ -1151,7 +1165,9 @@ namespace NLua
}
#if __IOS__ || __TVOS__ || __WATCHOS__ || __MACCATALYST__
#pragma warning disable CA1416 // Validate platform compatibility
[
MonoPInvokeCallback
(
typeof
(
LuaNativeFunction
))]
#pragma warning restore CA1416 // Validate platform compatibility
#endif
private
static
int
EnumFromInt
(
IntPtr
luaState
)
{
...
...
tests/build/net46/NLuaTest.csproj
View file @
9544136c
...
...
@@ -51,7 +51,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference
Include=
"KeraLua"
>
<Version>
1.3.
2
</Version>
<Version>
1.3.
3
</Version>
</PackageReference>
<PackageReference
Include=
"NUnit"
>
<Version>
3.13.2
</Version>
...
...
tests/build/net6.0/NLuaTest.net6.0.csproj
View file @
9544136c
...
...
@@ -26,7 +26,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="KeraLua" Version="1.3.
2
">
<PackageReference Include="KeraLua" Version="1.3.
3
">
</PackageReference>
<PackageReference Include="nunit" Version="3.13.2" />
<PackageReference Include="NUnit3TestAdapter" Version="4.1.0"><IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
...
...
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment