From 5358e659d76828a82d2fd277192e27a243296ff8 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Sun, 15 Feb 2026 17:08:11 -0800 Subject: [PATCH] add a compile error for trying to compile a doc at runtime --- src/tokenize.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tokenize.zig b/src/tokenize.zig index 52f7af63380e5999c42cae99b0ba5833174e3089..4473901d4759ef5258ce2770f63adb03e2f68c76 100644 --- a/src/tokenize.zig +++ b/src/tokenize.zig @@ -32,6 +32,7 @@ pub fn do(comptime input: string, comptime symbols: []const u8) []const Token { var mode = 0; @setEvalBranchQuota(1000000); + if (!@inComptime()) @compileError("must be at comptime!"); inline for (input, 0..) |c, i| { const s = &[_]u8{c}; -- 2.54.0