| ... | @@ -109,6 +109,7 @@ fn do(alloc: *std.mem.Allocator, writer: anytype, comptime value: astgen.Value, | ... | @@ -109,6 +109,7 @@ fn do(alloc: *std.mem.Allocator, writer: anytype, comptime value: astgen.Value, |
| 109 | switch (comptime TI) { | 109 | switch (comptime TI) { |
| 110 | .Bool => try doif(alloc, writer, body, bottom, data, ctx, indent, flag1, x), | 110 | .Bool => try doif(alloc, writer, body, bottom, data, ctx, indent, flag1, x), |
| 111 | .Optional => try docap(alloc, writer, body, bottom, data, ctx, indent, flag1, x), | 111 | .Optional => try docap(alloc, writer, body, bottom, data, ctx, indent, flag1, x), |
| | 112 | else => @compileError(comptime std.fmt.comptimePrint("pek: unable to use '{s}' in an #if block", .{@typeName(T)})), |
| 112 | } | 113 | } |
| 113 | }, | 114 | }, |
| 114 | .ifnot => { | 115 | .ifnot => { |
| ... | @@ -116,6 +117,7 @@ fn do(alloc: *std.mem.Allocator, writer: anytype, comptime value: astgen.Value, | ... | @@ -116,6 +117,7 @@ fn do(alloc: *std.mem.Allocator, writer: anytype, comptime value: astgen.Value, |
| 116 | switch (comptime TI) { | 117 | switch (comptime TI) { |
| 117 | .Bool => try doif(alloc, writer, body, bottom, data, ctx, indent, flag1, !x), | 118 | .Bool => try doif(alloc, writer, body, bottom, data, ctx, indent, flag1, !x), |
| 118 | .Optional => try docap(alloc, writer, body, bottom, data, ctx, indent, flag1, !x), | 119 | .Optional => try docap(alloc, writer, body, bottom, data, ctx, indent, flag1, !x), |
| | 120 | else => @compileError(comptime std.fmt.comptimePrint("pek: unable to use '{s}' in an #ifnot block", .{@typeName(T)})), |
| 119 | } | 121 | } |
| 120 | }, | 122 | }, |
| 121 | .ifequal => { | 123 | .ifequal => { |