ReactOS  0.4.14-dev-1112-g2b067d6
matherr.c File Reference
#include <precomp.h>
#include <math.h>
Include dependency graph for matherr.c:

Go to the source code of this file.

Macros

#define __USE_ISOC9X   1
 
#define __USE_ISOC99   1
 
#define finite(x)   (!isnan(x)) /* At least catch some cases */
 
#define signbit(x)   0
 

Typedefs

typedef int(* MSVCRT_matherr_func) (struct _exception *)
 

Functions

int CDECL _matherr (struct _exception *e)
 
void CDECL __setusermatherr (MSVCRT_matherr_func func)
 

Variables

static MSVCRT_matherr_func MSVCRT_default_matherr_func = NULL
 

Macro Definition Documentation

◆ __USE_ISOC99

#define __USE_ISOC99   1

Definition at line 4 of file matherr.c.

◆ __USE_ISOC9X

#define __USE_ISOC9X   1

Definition at line 3 of file matherr.c.

◆ finite

#define finite (   x)    (!isnan(x)) /* At least catch some cases */

Definition at line 16 of file matherr.c.

◆ signbit

#define signbit (   x)    0

Definition at line 22 of file matherr.c.

Typedef Documentation

◆ MSVCRT_matherr_func

typedef int(* MSVCRT_matherr_func) (struct _exception *)

Definition at line 25 of file matherr.c.

Function Documentation

◆ __setusermatherr()

void CDECL __setusermatherr ( MSVCRT_matherr_func  func)

Definition at line 45 of file matherr.c.

46 {
48  TRACE(":new matherr handler %p\n", func);
49 }
GLenum func
Definition: glext.h:6028
#define TRACE(s)
Definition: solgame.cpp:4
static MSVCRT_matherr_func MSVCRT_default_matherr_func
Definition: matherr.c:27

Referenced by __mingw_setusermatherr().

◆ _matherr()

int CDECL _matherr ( struct _exception e)

Definition at line 29 of file matherr.c.

30 {
31  if (e)
32  TRACE("(%p = %d, %s, %g %g %g)\n",e, e->type, e->name, e->arg1, e->arg2,
33  e->retval);
34  else
35  TRACE("(null)\n");
38  ERR(":Unhandled math error!\n");
39  return 0;
40 }
#define e
Definition: ke_i.h:82
#define TRACE(s)
Definition: solgame.cpp:4
char * name
Definition: compiler.c:66
#define ERR(fmt,...)
Definition: debug.h:109
static MSVCRT_matherr_func MSVCRT_default_matherr_func
Definition: matherr.c:27

Variable Documentation

◆ MSVCRT_default_matherr_func

MSVCRT_matherr_func MSVCRT_default_matherr_func = NULL
static

Definition at line 27 of file matherr.c.

Referenced by __setusermatherr(), and _matherr().