__setusermatherr__setusermatherr

指定用户提供的例程(而不是 _matherr 例程)处理数学错误。Specifies a user-supplied rountine to handle math errors, instead of the _matherr routine.

语法Syntax

void __setusermatherr(  
   _HANDLE_MATH_ERROR pf   
   )  

参数Parameters

pf
指向用户提供的 _matherr 的实现的指针。Pointer to an implementation of _matherr that is supplied by the user.

pf 参数的类型声明为 typedef int (__cdecl * _HANDLE_MATH_ERROR)(struct _exception *)The type of the pf parameter is declared as typedef int (__cdecl * _HANDLE_MATH_ERROR)(struct _exception *).

备注Remarks

要求Requirements

例程Routine 必需的标头Required header
__setusermatherr__setusermatherr matherr.cmatherr.c