12345678910111213141516171819202122232425262728293031 |
- #include "catch_polyfills.hpp"
- #include <cmath>
- namespace Catch {
- #if !defined(CATCH_CONFIG_POLYFILL_ISNAN)
- bool isnan(float f) {
- return std::isnan(f);
- }
- bool isnan(double d) {
- return std::isnan(d);
- }
- #else
-
- bool isnan(float f) {
- return std::_isnan(f);
- }
- bool isnan(double d) {
- return std::_isnan(d);
- }
- #endif
- }
|