Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ MathErr(3) — Sprite KS.390

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Tcl_MathError  —  C Library Procedures

NAME

Tcl_MathError - Floating point math error trap handler for Tcl. 

SYNOPSIS

#include <tclExtend.h>
Tcl_MathError (functionName, errorType)

ARGUMENTS

char∗functionName(in) The name of the function that got the error. From the exception structure supplied to matherr. 

interrorType(in) The type of error that occured. From the exception structure supplied to matherr. 


 

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. 

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. 

The Extended Tcl library comes with a matherr routine that calls Tcl_MathError.  If the error does not belong to Tcl, standard math error processing is done.  An application may replace this matherr with their own version however, it must call Tcl_MathError to check if the error belongs to tcl. 
 

KEYWORDS

floating point, math, error

Sprite version 1.0  —  

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