Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ MathErr(TCL) — Sprite KS.390

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Tcl_MathError  —  UNKNOWN MANUAL SECTION

NAME

Tcl_MathError - Floating point math error trap handler for Tcl. 

SYNOPSIS

#include "tclExtend.h"
 int
Tcl_MathError (char ∗functionName,
               int   errorType);

DESCRIPTION

Tcl math error handler, should be called by an application ‘matherr’ routine to determine if an error was caused by Tcl code or by other code in the application.  If the error occured in Tcl code, flags will be set so that a standard Tcl interpreter error can be returned. 

Paramenters:

o functionName (I) - The name of the function that got the error.  From the exception structure supplied to matherr. 
o errorType (I) - The type of error that occured.  From the exception structure supplied to matherr.

Returns:

TRUE if the error was in Tcl code, in which case the matherr routine calling this function should return non-zero so no error message will be generated.  FALSE if the error was not in Tcl code, in which case the matherr routine can handle the error in any manner it choses. 

Tcl  —  

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026