Skip to content

Commit

Permalink
BUG: Disable Emscripten exception for floating point exceptions
Browse files Browse the repository at this point in the history
We need this to be a no-op.
  • Loading branch information
thewtex committed Feb 18, 2021
1 parent f45fe86 commit 9f5529f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Modules/Core/Common/src/itkFloatingPointExceptions_unix.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ void
FloatingPointExceptions::Enable()
{
itkInitGlobalsMacro(PimplGlobals);
#if defined(ITK_HAS_FPE_CAPABILITY) && !defined(__EMSCRIPTEN__)
#if defined(ITK_HAS_FPE_CAPABILITY)
itk_feenableexcept(FE_DIVBYZERO);
itk_feenableexcept(FE_INVALID);
# if defined(ITK_FPE_USE_SIGNAL_HANDLER)
Expand All @@ -158,7 +158,7 @@ void
FloatingPointExceptions::Disable()
{
itkInitGlobalsMacro(PimplGlobals);
#if defined(ITK_HAS_FPE_CAPABILITY) && !defined(__EMSCRIPTEN__)
#if defined(ITK_HAS_FPE_CAPABILITY)
itk_fedisableexcept(FE_DIVBYZERO);
itk_fedisableexcept(FE_INVALID);
FloatingPointExceptions::m_PimplGlobals->m_Enabled = false;
Expand Down

0 comments on commit 9f5529f

Please sign in to comment.