File tree Expand file tree Collapse file tree 11 files changed +13
-5
lines changed Expand file tree Collapse file tree 11 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
+ <OutputType >Library</OutputType >
4
5
<TargetFrameworks >net8.0;net7.0;net6.0</TargetFrameworks >
5
6
<ImplicitUsings >enable</ImplicitUsings >
6
7
<AllowUnsafeBlocks >true</AllowUnsafeBlocks >
29
30
<None Include =" LUA_COPYRIGHT" Pack =" true" PackagePath =" \" />
30
31
<None Include =" LUAJIT_COPYRIGHT" Pack =" true" PackagePath =" \" />
31
32
<None Include =" Lua.NET.Logo.png" Pack =" true" PackagePath =" \" />
32
- </ItemGroup >
33
-
34
- <ItemGroup >
35
- <Content Include =" native/win-x64/*" Pack =" true" PackagePath =" runtimes/win-x64/native" CopyToOutputDirectory =" PreserveNewest" />
36
- <Content Include =" native/linux-x64/*" Pack =" true" PackagePath =" runtimes/linux-x64/native" CopyToOutputDirectory =" PreserveNewest" />
33
+ <Content Include =" runtimes/win-x64/native/*" Pack =" true" PackagePath =" runtimes/win-x64/native" CopyToOutputDirectory =" PreserveNewest" />
34
+ <Content Include =" runtimes/linux-x64/native/*" Pack =" true" PackagePath =" runtimes/linux-x64/native" CopyToOutputDirectory =" PreserveNewest" />
37
35
</ItemGroup >
38
36
39
37
</Project >
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -15,7 +15,9 @@ public struct lua_State : IEquatable<lua_State>
15
15
16
16
public static bool operator ! ( lua_State state ) => state . Handle == 0 ;
17
17
public static bool operator == ( lua_State state1 , lua_State state2 ) => state1 . Handle == state2 . Handle ;
18
+ public static bool operator == ( lua_State state1 , int handle ) => state1 . Handle == ( nuint ) handle ;
18
19
public static bool operator != ( lua_State state1 , lua_State state2 ) => state1 . Handle != state2 . Handle ;
20
+ public static bool operator != ( lua_State state1 , int handle ) => state1 . Handle != ( nuint ) handle ;
19
21
20
22
public readonly bool Equals ( lua_State other ) => Handle == other . Handle ;
21
23
public override readonly bool Equals ( object ? other ) => other is lua_State state && Equals ( state ) ;
Original file line number Diff line number Diff line change @@ -16,7 +16,9 @@ public struct lua_State : IEquatable<lua_State>
16
16
17
17
public static bool operator ! ( lua_State state ) => state . Handle == 0 ;
18
18
public static bool operator == ( lua_State state1 , lua_State state2 ) => state1 . Handle == state2 . Handle ;
19
+ public static bool operator == ( lua_State state1 , int handle ) => state1 . Handle == ( nuint ) handle ;
19
20
public static bool operator != ( lua_State state1 , lua_State state2 ) => state1 . Handle != state2 . Handle ;
21
+ public static bool operator != ( lua_State state1 , int handle ) => state1 . Handle != ( nuint ) handle ;
20
22
21
23
public readonly bool Equals ( lua_State other ) => Handle == other . Handle ;
22
24
public override readonly bool Equals ( object ? other ) => other is lua_State state && Equals ( state ) ;
Original file line number Diff line number Diff line change @@ -16,7 +16,9 @@ public struct lua_State : IEquatable<lua_State>
16
16
17
17
public static bool operator ! ( lua_State state ) => state . Handle == 0 ;
18
18
public static bool operator == ( lua_State state1 , lua_State state2 ) => state1 . Handle == state2 . Handle ;
19
+ public static bool operator == ( lua_State state1 , int handle ) => state1 . Handle == ( nuint ) handle ;
19
20
public static bool operator != ( lua_State state1 , lua_State state2 ) => state1 . Handle != state2 . Handle ;
21
+ public static bool operator != ( lua_State state1 , int handle ) => state1 . Handle != ( nuint ) handle ;
20
22
21
23
public readonly bool Equals ( lua_State other ) => Handle == other . Handle ;
22
24
public override readonly bool Equals ( object ? other ) => other is lua_State state && Equals ( state ) ;
Original file line number Diff line number Diff line change @@ -16,7 +16,9 @@ public struct lua_State : IEquatable<lua_State>
16
16
17
17
public static bool operator ! ( lua_State state ) => state . Handle == 0 ;
18
18
public static bool operator == ( lua_State state1 , lua_State state2 ) => state1 . Handle == state2 . Handle ;
19
+ public static bool operator == ( lua_State state1 , int handle ) => state1 . Handle == ( nuint ) handle ;
19
20
public static bool operator != ( lua_State state1 , lua_State state2 ) => state1 . Handle != state2 . Handle ;
21
+ public static bool operator != ( lua_State state1 , int handle ) => state1 . Handle != ( nuint ) handle ;
20
22
21
23
public readonly bool Equals ( lua_State other ) => Handle == other . Handle ;
22
24
public override readonly bool Equals ( object ? other ) => other is lua_State state && Equals ( state ) ;
You can’t perform that action at this time.
0 commit comments