ReactOS 0.4.15-dev-7924-g5949c20
_invoke_matherr.c File Reference
#include <math.h>
Include dependency graph for _invoke_matherr.c:

Go to the source code of this file.

Typedefs

typedef int(* _UserMathErrorFunctionPointer) (struct _exception *)
 

Functions

void __cdecl __setusermatherr (_UserMathErrorFunctionPointer func)
 
int __cdecl _invoke_matherr (int type, char *name, double arg1, double arg2, double retval)
 

Variables

static _UserMathErrorFunctionPointer user_matherr = NULL
 

Typedef Documentation

◆ _UserMathErrorFunctionPointer

typedef int(* _UserMathErrorFunctionPointer) (struct _exception *)

Definition at line 11 of file _invoke_matherr.c.

Function Documentation

◆ __setusermatherr()

void __cdecl __setusermatherr ( _UserMathErrorFunctionPointer  func)

Definition at line 17 of file _invoke_matherr.c.

18{
20}
static _UserMathErrorFunctionPointer user_matherr
GLenum func
Definition: glext.h:6028

◆ _invoke_matherr()

int __cdecl _invoke_matherr ( int  type,
char name,
double  arg1,
double  arg2,
double  retval 
)

Definition at line 24 of file _invoke_matherr.c.

30{
31 if (user_matherr != NULL)
32 {
33 struct _exception excpt;
34 excpt.type = type;
35 excpt.name = name;
36 excpt.arg1 = arg1;
37 excpt.arg2 = arg2;
38 excpt.retval = retval;
39 return user_matherr(&excpt);
40 }
41 else
42 {
43 return 0;
44 }
45}
#define NULL
Definition: types.h:112
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
GLuint GLuint GLuint GLuint arg1
Definition: glext.h:9513
GLuint GLuint GLuint GLuint GLuint GLuint GLuint arg2
Definition: glext.h:9514
double retval
Definition: math.h:25
char * name
Definition: math.h:22
int type
Definition: math.h:21

Referenced by _handle_error(), and _handle_errorf().

Variable Documentation

◆ user_matherr

_UserMathErrorFunctionPointer user_matherr = NULL
static

Definition at line 13 of file _invoke_matherr.c.

Referenced by __setusermatherr(), and _invoke_matherr().