disable Check_FPU_rounding_mode_is_restored on demand

This commit is contained in:
Laurent Rineau 2025-09-10 16:08:52 +02:00
parent 6bf6331967
commit fdbbb776bc
2 changed files with 3 additions and 0 deletions

View File

@ -51,11 +51,13 @@ get_static_check_fpu_rounding_mode_is_restored()
return check_fpu_rounding_mode_is_restored;
}
#ifndef CGAL_DISABLE_ROUNDING_MATH_CHECK
namespace {
CGAL_UNUSED const Check_FPU_rounding_mode_is_restored &
check_fpu_rounding_mode_is_restored
= get_static_check_fpu_rounding_mode_is_restored();
}
#endif
#else

View File

@ -1,3 +1,4 @@
#define CGAL_DISABLE_ROUNDING_MATH_CHECK 1
#include <iostream>
#include <CGAL/config.h>
#include <CGAL/Interval_nt.h>