std-warn


Synopsis

(std-warn <msg>)

(std-print-warn <msg>)

Description

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*.

Examples

(std-warn (list "N too high - " n))

Arguments

msg: any valid lisp expression. Most likely a list of to be printed expressions.

Return Value

Not defined. Most likely NIL

Side Effects

This is a typical function only used for its side effect.

Module

(std-require 'STDLISP)

Defined in STDLISP