Changed from root.zig to zla.zig
This commit is contained in:
parent
808b0f4a2f
commit
82e63e783a
3 changed files with 12 additions and 10 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue