| ... | @@ -198,6 +198,12 @@ inline fn do(comptime Ctx: type, alloc: std.mem.Allocator, writer: anytype, comp | ... | @@ -198,6 +198,12 @@ inline fn do(comptime Ctx: type, alloc: std.mem.Allocator, writer: anytype, comp |
| 198 | try do(Ctx, alloc, writer, repvalue, try list.toOwnedSlice(), ctx, opts); | 198 | try do(Ctx, alloc, writer, repvalue, try list.toOwnedSlice(), ctx, opts); |
| 199 | return; | 199 | return; |
| 200 | } | 200 | } |
| | 201 | if (v.raw and @hasDecl(Ctx, "pek_" ++ v.name)) { |
| | 202 | @compileError("pek: attempted to call safe custom function: '" ++ v.name ++ "' but did not use '{" ++ v.name ++ "}'"); |
| | 203 | } |
| | 204 | if (!v.raw and @hasDecl(Ctx, "pek__" ++ v.name)) { |
| | 205 | @compileError("pek: attempted to call raw custom function: '_" ++ v.name ++ "' but did not use '{#" ++ v.name ++ "}'"); |
| | 206 | } |
| 201 | @compileError("pek: unknown custom function: " ++ v.name); | 207 | @compileError("pek: unknown custom function: " ++ v.name); |
| 202 | }, | 208 | }, |
| 203 | else => unreachable, | 209 | else => unreachable, |