std-verbose-print


Synopsis

(std-verbose-print <msg>) ; prints if *VERBOSE*

(std-debug-print <msg>) ; prints if *DEBUG*

Description

STD-VERBOSE-PRINT uses STD-PRINC to print a message to the console if the global variable *VERBOSE* is set.

STD-DEBUG-PRINT uses STD-PRINC to print a message to the console if the global variable *DEBUG* is set.

This is used for informal messages to the user or the programmer which might easily be turned off by setting *VERBOSE* or *DEBUG* to nil.

For details about STD-PRINC like taking lists and honoring *PRINT-LENGTH* and *PRINT-LEVEL* see STD-PRINC.

Also note that the name ends with PRINT but it uses PRINC not PRINT! This reflects the semantic of the name, but not the feature. (keep it readable)

Examples

(std-verbose-print (list "\npass: " i))
(std-debug-print (list "\nN is " 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