Misc Class Reference

#include <floatingpoint.h>

静态公共成员函数

static MAXON_METHOD Bool   SetFloatingPointChecks ( Bool on)

私有成员函数

  MAXON_INTERFACE_NONVIRTUAL ( Misc , MAXON_REFERENCE_NONE , "net.maxon.interface.misc")

成员函数文档编制

◆  MAXON_INTERFACE_NONVIRTUAL()

MAXON_INTERFACE_NONVIRTUAL ( Misc   ,
MAXON_REFERENCE_NONE   ,
"net.maxon.interface.misc"   
)
private

◆  SetFloatingPointChecks()

static MAXON_METHOD Bool SetFloatingPointChecks ( Bool   on )
static

Activates or deactivates floating point checks (exceptions). If (on && g_checkFloatZeroDivide) == true checks for division by zero will be active. If (on && g_checkFloatInvalid) == true checks for invalid floating point numbers will be active. If (on && g_checkFloatOverflow) == true checks for invalid floating overflows will be active. Currently under OS X all checks are disabled as the system and OpenGL throw exceptions in too many places. SetFloatingPointChecks works thread-specific. THREADSAFE.

参数
[in] on The new state.
返回
The old state.