Misc Class Reference

#include <floatingpoint.h>

Static Public Member Functions

static MAXON_METHOD Bool SetFloatingPointChecks (Bool on)
 

Private Member Functions

 MAXON_INTERFACE_NONVIRTUAL (Misc, MAXON_REFERENCE_STATIC, "net.maxon.interface.misc", MAXON_IMPLEMENTATION_MODULE("net.maxon.kernel"))
 

Member Function Documentation

◆ MAXON_INTERFACE_NONVIRTUAL()

MAXON_INTERFACE_NONVIRTUAL ( Misc  ,
MAXON_REFERENCE_STATIC  ,
"net.maxon.interface.misc"  ,
MAXON_IMPLEMENTATION_MODULE("net.maxon.kernel")   
)
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.

Parameters
[in]onThe new state.
Returns
The old state.