diff --git a/src/lib.zig b/src/lib.zig index 5d76d55daf48116aff8c7a05c6993a3de89070b2..e954c49eceed48f472346a86285e199e4946fa00 100644 --- a/src/lib.zig +++ b/src/lib.zig @@ -109,6 +109,7 @@ fn do(alloc: *std.mem.Allocator, writer: anytype, comptime value: astgen.Value, switch (comptime TI) { .Bool => try doif(alloc, writer, body, bottom, data, ctx, indent, flag1, x), .Optional => try docap(alloc, writer, body, bottom, data, ctx, indent, flag1, x), + else => @compileError(comptime std.fmt.comptimePrint("pek: unable to use '{s}' in an #if block", .{@typeName(T)})), } }, .ifnot => { @@ -116,6 +117,7 @@ fn do(alloc: *std.mem.Allocator, writer: anytype, comptime value: astgen.Value, switch (comptime TI) { .Bool => try doif(alloc, writer, body, bottom, data, ctx, indent, flag1, !x), .Optional => try docap(alloc, writer, body, bottom, data, ctx, indent, flag1, !x), + else => @compileError(comptime std.fmt.comptimePrint("pek: unable to use '{s}' in an #ifnot block", .{@typeName(T)})), } }, .ifequal => {