You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.6 KiB
C
53 lines
1.6 KiB
C
3 weeks ago
|
/*=========================================================================
|
||
|
|
||
|
Program: Visualization Toolkit
|
||
|
Module: vtkFloatingPointExceptions.h
|
||
|
|
||
|
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
|
||
|
All rights reserved.
|
||
|
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
|
||
|
|
||
|
This software is distributed WITHOUT ANY WARRANTY; without even
|
||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||
|
PURPOSE. See the above copyright notice for more information.
|
||
|
|
||
|
=========================================================================*/
|
||
|
/**
|
||
|
* @class vtkFloatingPointExceptions
|
||
|
* @brief Deal with floating-point exceptions
|
||
|
*
|
||
|
* Right now it is really basic and it only provides a function to enable
|
||
|
* floating point exceptions on some compilers.
|
||
|
* Note that Borland C++ has floating-point exceptions by default, not
|
||
|
* Visual studio nor gcc. It is mainly use to optionally enable floating
|
||
|
* point exceptions in the C++ tests.
|
||
|
*/
|
||
|
|
||
|
#ifndef vtkFloatingPointExceptions_h
|
||
|
#define vtkFloatingPointExceptions_h
|
||
|
|
||
|
#include "vtkCommonCoreModule.h" // For export macro
|
||
|
#include "vtkSystemIncludes.h" // For VTKCOMMONCORE_EXPORT
|
||
|
|
||
|
class VTKCOMMONCORE_EXPORT vtkFloatingPointExceptions
|
||
|
{
|
||
|
public:
|
||
|
/**
|
||
|
* Enable floating point exceptions.
|
||
|
*/
|
||
|
static void Enable();
|
||
|
|
||
|
/**
|
||
|
* Disable floating point exceptions.
|
||
|
*/
|
||
|
static void Disable();
|
||
|
|
||
|
private:
|
||
|
vtkFloatingPointExceptions() = delete;
|
||
|
vtkFloatingPointExceptions(const vtkFloatingPointExceptions&) = delete;
|
||
|
void operator=(const vtkFloatingPointExceptions&) = delete;
|
||
|
};
|
||
|
|
||
|
#endif
|
||
|
// VTK-HeaderTest-Exclude: vtkFloatingPointExceptions.h
|