Skip to content

Instantly share code, notes, and snippets.

View MichaelVoelkel's full-sized avatar

Michael Völkel MichaelVoelkel

  • Cologne, Germany
View GitHub Profile
@MichaelVoelkel
MichaelVoelkel / format.zig
Created August 4, 2022 12:53
Zig Format put split into functions pseudo code
pub fn format(
writer: anytype,
comptime fmt: []const u8,
args: anytype,
) !void {
const ArgsType = @TypeOf(args);
const args_type_info = @typeInfo(ArgsType);
_checkPreconditions(...);