assert.l0
Module: std.assert
Source: compiler/shared/l0/stdlib/std/assert.l0 Language: Dea/L0
Imports / Includes
sys.rt
Symbols
Function assert
1
func assert(cond: bool, msg: string)
Asserts that the given condition is true.
If the condition is false, aborts the program with the provided message.
Parameters:
cond: The condition to evaluate.msg: The message to display if the assertion fails.