muffleWarnings
muffleWarnings(g_expr1... ) =>g_general
Description
Returns the result of the last expression evaluated. If the last expression evaluated calls the warn function (either SKILL warn() or C-level ilWarn*), the related message is not printed out.
To get the list of muffled warning messages, use the getMuffleWarnings function immediately after a muffleWarnings command.
Arguments
Value Returned
Examples
Result indicates 3 as the value evaluated from the last expression. The muffled warning messages are listed as a result of the getMuffleWarnings function.
muffleWarnings( warn("A warning") warn("A second warning") 1+2
)
=> 3
getMuffleWarnings( )
=> ("A warning" "A second warning")
Related Topics
Return to top