Skip to content

Commit

Permalink
Combine Lua 54 and 53
Browse files Browse the repository at this point in the history
The biggest change is that the Uservalue functions in lua 54 no longer
have Index in the name.
  • Loading branch information
natecraddock committed Jan 25, 2024
1 parent db29119 commit 17e3fdd
Show file tree
Hide file tree
Showing 4 changed files with 295 additions and 2,129 deletions.
18 changes: 2 additions & 16 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,7 @@ pub fn build(b: *Build) void {

// Zig module
const ziglua = b.addModule("ziglua", .{
.root_source_file = switch (lang) {
.lua51 => .{ .path = "src/lib51.zig" },
.lua52 => .{ .path = "src/lib52.zig" },
.lua53 => .{ .path = "src/lib53.zig" },
.lua54 => .{ .path = "src/lib54.zig" },
.luajit => .{ .path = "src/lib51.zig" },
.luau => .{ .path = "src/libluau.zig" },
},
.root_source_file = .{ .path = "src/lib.zig" },
});

// Expose build configuration to the ziglua module
Expand Down Expand Up @@ -116,14 +109,7 @@ pub fn build(b: *Build) void {
}

const docs = b.addTest(.{
.root_source_file = switch (lang) {
.lua51 => .{ .path = "src/lib51.zig" },
.lua52 => .{ .path = "src/lib52.zig" },
.lua53 => .{ .path = "src/lib53.zig" },
.lua54 => .{ .path = "src/lib54.zig" },
.luajit => .{ .path = "src/lib51.zig" },
.luau => .{ .path = "src/libluau.zig" },
},
.root_source_file = .{ .path = "src/lib.zig" },
});
docs.root_module.addOptions("config", config);

Expand Down
Loading

0 comments on commit 17e3fdd

Please sign in to comment.