Skip to content

panic

Declaration

panic :: fn (args: ...)

Description

Abort execution and eventually print panic message if there is one specified. First passed argument in 'args' will act like format string and can be eventually followed by any additional values required.

Arguments

  • args Variable argument count of Any type.

Example

panic(); // abort without any messages
panic("oops!"); // abort with message prited out.
panic("Failed with error: %", errn); // first argument passed acts like formating string

Declared in: debug.bl