Skip to content

Dev #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 24, 2024
Merged

Dev #14

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions Lua.NET.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Library</OutputType>
<TargetFrameworks>net8.0;net7.0;net6.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
Expand Down Expand Up @@ -29,11 +30,8 @@
<None Include="LUA_COPYRIGHT" Pack="true" PackagePath="\" />
<None Include="LUAJIT_COPYRIGHT" Pack="true" PackagePath="\" />
<None Include="Lua.NET.Logo.png" Pack="true" PackagePath="\" />
</ItemGroup>

<ItemGroup>
<Content Include="native/win-x64/*" Pack="true" PackagePath="runtimes/win-x64/native" CopyToOutputDirectory="PreserveNewest" />
<Content Include="native/linux-x64/*" Pack="true" PackagePath="runtimes/linux-x64/native" CopyToOutputDirectory="PreserveNewest" />
<Content Include="runtimes/win-x64/native/*" Pack="true" PackagePath="runtimes/win-x64/native" CopyToOutputDirectory="PreserveNewest" />
<Content Include="runtimes/linux-x64/native/*" Pack="true" PackagePath="runtimes/linux-x64/native" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>

</Project>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions src/Lua51.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ public struct lua_State : IEquatable<lua_State>

public static bool operator !(lua_State state) => state.Handle == 0;
public static bool operator ==(lua_State state1, lua_State state2) => state1.Handle == state2.Handle;
public static bool operator ==(lua_State state1, int handle) => state1.Handle == (nuint) handle;
public static bool operator !=(lua_State state1, lua_State state2) => state1.Handle != state2.Handle;
public static bool operator !=(lua_State state1, int handle) => state1.Handle != (nuint) handle;

public readonly bool Equals(lua_State other) => Handle == other.Handle;
public override readonly bool Equals(object? other) => other is lua_State state && Equals(state);
Expand Down
2 changes: 2 additions & 0 deletions src/Lua52.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ public struct lua_State : IEquatable<lua_State>

public static bool operator !(lua_State state) => state.Handle == 0;
public static bool operator ==(lua_State state1, lua_State state2) => state1.Handle == state2.Handle;
public static bool operator ==(lua_State state1, int handle) => state1.Handle == (nuint) handle;
public static bool operator !=(lua_State state1, lua_State state2) => state1.Handle != state2.Handle;
public static bool operator !=(lua_State state1, int handle) => state1.Handle != (nuint) handle;

public readonly bool Equals(lua_State other) => Handle == other.Handle;
public override readonly bool Equals(object? other) => other is lua_State state && Equals(state);
Expand Down
2 changes: 2 additions & 0 deletions src/Lua53.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ public struct lua_State : IEquatable<lua_State>

public static bool operator !(lua_State state) => state.Handle == 0;
public static bool operator ==(lua_State state1, lua_State state2) => state1.Handle == state2.Handle;
public static bool operator ==(lua_State state1, int handle) => state1.Handle == (nuint) handle;
public static bool operator !=(lua_State state1, lua_State state2) => state1.Handle != state2.Handle;
public static bool operator !=(lua_State state1, int handle) => state1.Handle != (nuint) handle;

public readonly bool Equals(lua_State other) => Handle == other.Handle;
public override readonly bool Equals(object? other) => other is lua_State state && Equals(state);
Expand Down
2 changes: 2 additions & 0 deletions src/Lua54.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ public struct lua_State : IEquatable<lua_State>

public static bool operator !(lua_State state) => state.Handle == 0;
public static bool operator ==(lua_State state1, lua_State state2) => state1.Handle == state2.Handle;
public static bool operator ==(lua_State state1, int handle) => state1.Handle == (nuint) handle;
public static bool operator !=(lua_State state1, lua_State state2) => state1.Handle != state2.Handle;
public static bool operator !=(lua_State state1, int handle) => state1.Handle != (nuint) handle;

public readonly bool Equals(lua_State other) => Handle == other.Handle;
public override readonly bool Equals(object? other) => other is lua_State state && Equals(state);
Expand Down
2 changes: 2 additions & 0 deletions src/LuaJIT.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ public struct lua_State : IEquatable<lua_State>

public static bool operator !(lua_State state) => state.Handle == 0;
public static bool operator ==(lua_State state1, lua_State state2) => state1.Handle == state2.Handle;
public static bool operator ==(lua_State state1, int handle) => state1.Handle == (nuint) handle;
public static bool operator !=(lua_State state1, lua_State state2) => state1.Handle != state2.Handle;
public static bool operator !=(lua_State state1, int handle) => state1.Handle != (nuint) handle;

public readonly bool Equals(lua_State other) => Handle == other.Handle;
public override readonly bool Equals(object? other) => other is lua_State state && Equals(state);
Expand Down