Skip to content

assert

Declaration

assert :: fn (cond: bool, loc := #call_location)

Description

Interrupt execution when cond is false. Assert use _context.print_log_fn to print out error message containing assert location in source code.

Arguments

  • cond Condition to be validated.

Declared in: debug.bl