Files
mgmt/lang/interpret_test/TestAstFunc2/panic0.txtar
James Shubin 8251c8f259 lang: funcs: core: Add a second panic signature
This modifies the panic feature to accept a boolean or a string. If true
or not empty, then it will cause the panic. This makes some of the error
code a little less ugly.
2023-11-28 14:43:39 -05:00

9 lines
125 B
Plaintext

-- main.mcl --
# This should not panic.
panic(false)
panic(false)
panic("")
panic("")
# Empty graph, no output.
-- OUTPUT --