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 optimize = b.standardOptimizeOption(.{});
const mod = b.addModule("zla", .{ const mod = b.addModule("zla", .{
.root_source_file = b.path("src/root.zig"), .root_source_file = b.path("src/zla.zig"),
.target = target, .target = target,
.optimize = optimize, .optimize = optimize,

View file

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