authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-02-15 17:08:11 -08:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-02-15 17:08:11 -08:00
log5358e659d76828a82d2fd277192e27a243296ff8
tree41516e36cc6e4213c2fed3a8b4f77217a82aecce
parent20454a7042078cb90615e9461350c6bfa1bcf4bd

add a compile error for trying to compile a doc at runtime


1 files changed, 1 insertions(+), 0 deletions(-)

src/tokenize.zig+1
...@@ -32,6 +32,7 @@ pub fn do(comptime input: string, comptime symbols: []const u8) []const Token {...@@ -32,6 +32,7 @@ pub fn do(comptime input: string, comptime symbols: []const u8) []const Token {
32 var mode = 0;32 var mode = 0;
3333
34 @setEvalBranchQuota(1000000);34 @setEvalBranchQuota(1000000);
35 if (!@inComptime()) @compileError("must be at comptime!");
3536
36 inline for (input, 0..) |c, i| {37 inline for (input, 0..) |c, i| {
37 const s = &[_]u8{c};38 const s = &[_]u8{c};