Assert

assert is used as a check for if a certain condition true within the code. If an assert fails, it causes the program to print out an error message, print out a stack trace to help you diagnose a problem with your program, and kills your process. If the ENABLE_ASSERT parameter is set to false, assertions will be removed from the program.

assert :: inline (arg: bool, message := "", args: .. Any, loc := #caller_location);
1 Like