ASSERT
Raises an error and prints a message if a given logical expression fails in runtime
Implemented by: FreeBASIC, Gambas
With variations:
Also written as:
Usage
In Gambas versions 3.13 onwards, ASSERT can be used with PRINT or ERROR to log a message, and the program is halted.
ASSERT c < 0 PRINT "No deal. I'm leaving."
Variations
Examples
Comments
Related keywords
Similar keywords
In other languages...
References
- https://gambaswiki.org/wiki/lang/assert , last check 2024-02-16