Skip to content

Add Lua5.0, bump version #26

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 4 commits into from
Jan 4, 2025
Merged
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
4 changes: 2 additions & 2 deletions Lua.NET.csproj
Original file line number Diff line number Diff line change
@@ -2,12 +2,12 @@

<PropertyGroup>
<OutputType>Library</OutputType>
<TargetFrameworks>net8.0;net7.0;net6.0</TargetFrameworks>
<TargetFrameworks>net9.0;net8.0;net7.0;net6.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<Nullable>enable</Nullable>
<PackageId>Lua.NET</PackageId>
<Version>5.0.3</Version>
<Version>6.0.0</Version>
<Authors>Cody Tilkins</Authors>
<Copyright>Copyright © Cody Tilkins 2024</Copyright>
<Title>Lua.NET</Title>
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -3,12 +3,12 @@
![Logo](https://raw.githubusercontent.com/tilkinsc/Lua.NET/main/Lua.NET.Logo.png)

C# .NET Core 8.0
Lua.NET contains full bindings to Lua5.1.5, Lua5.2.4, Lua5.3.6, Lua.5.4.6 and LuaJIT
Lua.NET contains full bindings to Lua5.0.3, Lua5.1.5, Lua5.2.4, Lua5.3.6, Lua.5.4.6 and LuaJIT

https://github.com/tilkinsc/Lua.NET
Copyright © Cody Tilkins 2024 MIT License

Supports Lua5.4 Lua5.3 Lua5.2 Lua5.1 and LuaJIT
Supports Lua5.4 Lua5.3 Lua5.2 Lua5.1 Lua5.0 and LuaJIT

Hardcoded to only use doubles and 64-bit integers.

Binary file added runtimes/win-x64/native/lua503.dll
Binary file not shown.
731 changes: 731 additions & 0 deletions src/Lua50.cs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/Lua51.cs
Original file line number Diff line number Diff line change
@@ -197,7 +197,7 @@ public static lua_State lua_newstate(lua_Alloc? f, nuint ud)
public static extern int lua_checkstack(lua_State L, int sz);

[DllImport(DllName, CallingConvention = Convention)]
public static extern void lua_xmove(lua_State L, lua_State to, int n);
public static extern void lua_xmove(lua_State from, lua_State to, int n);

[DllImport(DllName, CallingConvention = Convention)]
public static extern int lua_isnumber(lua_State L, int idx);