std-warn | ![]() |
STD-WARN depends on the state of the global variables *BREAK* and *BREAK-ON-WARNINGS*.
If *BREAK* is not-nil (STD-CERROR msg) is called, the continuable error.
If *BREAK* is nil (STD-PRINT-WARN msg) is called which prints a warning notice to the user. It might wait for user-interaction if *BREAK-ON-WARNINGS* is not nil (using ALERT) or just prints the warning to the console if *BREAK-ON-WARNINGS* is nil.
STD-PRINT-WARN prints a warning notice and uses then STD-PRINC to print the message. For details about STD-PRINC like taking lists and honoring *PRINT-LENGTH* and *PRINT-LEVEL* see STD-PRINC.
You may use just STD-PRINT-WARN to be independent of *BREAK*.
(std-warn (list "N too high - " n))
msg: any valid lisp expression. Most likely a list of to be printed expressions.
Not defined. Most likely NIL
This is a typical function only used for its side effect.
(std-require 'STDLISP)
Defined in STDLISP