Move files into catch2/ subdir
This commit is contained in:
parent
7c6de33977
commit
4385951a55
190 changed files with 0 additions and 0 deletions
31
src/catch2/catch_polyfills.cpp
Normal file
31
src/catch2/catch_polyfills.cpp
Normal file
|
@ -0,0 +1,31 @@
|
|||
/*
|
||||
* Created by Martin on 17/11/2017.
|
||||
*
|
||||
* Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#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
|
||||
// For now we only use this for embarcadero
|
||||
bool isnan(float f) {
|
||||
return std::_isnan(f);
|
||||
}
|
||||
bool isnan(double d) {
|
||||
return std::_isnan(d);
|
||||
}
|
||||
#endif
|
||||
|
||||
} // end namespace Catch
|
Loading…
Add table
Add a link
Reference in a new issue