Changed from root.zig to zla.zig

This commit is contained in:
abux 2026-07-27 09:36:03 +01:00
parent 808b0f4a2f
commit 82e63e783a
3 changed files with 12 additions and 10 deletions

View file

@ -5,7 +5,7 @@ pub fn build(b: *std.Build) void {
const optimize = b.standardOptimizeOption(.{});
const mod = b.addModule("zla", .{
.root_source_file = b.path("src/root.zig"),
.root_source_file = b.path("src/zla.zig"),
.target = target,
.optimize = optimize,

View file

@ -1,20 +1,22 @@
---@diagnostic disable-next-line: lowercase-global
function hello(name)
if name ~= nil then
io.stderr:write("Hello " .. name .. "\n")
else
io.stderr:write("Hello nil\n")
end
if name ~= nil then
io.stderr:write("Hello " .. name .. "\n")
else
io.stderr:write("Hello nil\n")
end
end
function add(a, b)
return a + b
return a + b
end
function getCoords()
return 1.5, 2.5
return 1.5, 2.5
end
config = {
width = 800,
height = 600,
width = 800,
height = 600,
}