Zig Bare Bones: Difference between revisions

m
Bot: Replace deprecated source tag with syntaxhighlight
[unchecked revision][unchecked revision]
m (Bot: Replace deprecated source tag with syntaxhighlight)
m (Bot: Replace deprecated source tag with syntaxhighlight)
Line 97:
 
=== src/main.zig ===
<sourcesyntaxhighlight lang="c">
const console = @import("console.zig");
 
Line 129:
console.puts("Hello world!");
}
</syntaxhighlight>
</source>
 
=== src/console.zig ===
<sourcesyntaxhighlight lang="c">
const fmt = @import("std").fmt;
const Writer = @import("std").io.Writer;
Line 217:
fmt.format(writer, format, args) catch unreachable;
}
</syntaxhighlight>
</source>
 
=== src/linker.ld ===