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.
9 lines
125 B
Plaintext
9 lines
125 B
Plaintext
-- main.mcl --
|
|
# This should not panic.
|
|
panic(false)
|
|
panic(false)
|
|
panic("")
|
|
panic("")
|
|
# Empty graph, no output.
|
|
-- OUTPUT --
|