|
FEDEM Solver
R8.0
Source code of the dynamics solver
|
Re-implementation of matherr handling on Windows. More...
#include <iostream>#include <string>#include <cmath>
Functions | |
| void _stdcall | MATHERRQQ (char *name, const int nchar, int &len, void *typeStruct, int &retval) |
Re-implementation of matherr handling on Windows.
Handles several math errors caused by passing a negative argument to log or log10 (_DOMAIN errors). When this happens, _matherr returns the natural or base-10 logarithm of the absolute value of the argument and suppresses the usual error message.
When an error occurs in a math routine, _matherr is called with a pointer to an _exception type structure (defined in math.h) as an argument. The _exception structure contains the following elements:
The type specifies the type of math error. It is one of the following values, defined in math.h:
| void _stdcall MATHERRQQ | ( | char * | name, |
| const int | nchar, | ||
| int & | len, | ||
| void * | typeStruct, | ||
| int & | retval | ||
| ) |