Sprout/sprout/math/detail/config.hpp

22 lines
644 B
C++
Raw Normal View History

2012-06-23 04:22:50 +00:00
#ifndef SPROUT_MATH_DETAIL_CONFIG_HPP
#define SPROUT_MATH_DETAIL_CONFIG_HPP
#include <sprout/config.hpp>
#if SPROUT_USE_BUILTIN_CMATH_FUNCTION
# include <cmath>
#endif
#if SPROUT_USE_BUILTIN_CMATH_FUNCTION
# define NS_SPROUT_MATH_DETAIL std
#else // #ifndef SPROUT_USE_BUILTIN_CMATH_FUNCTION
# define NS_SPROUT_MATH_DETAIL sprout::math::detail
#endif // #ifndef SPROUT_USE_BUILTIN_CMATH_FUNCTION
2013-01-13 08:41:45 +00:00
#if SPROUT_NOERROR_LARGE_FLOAT_ROUNDING
# define SPROUT_MATH_THROW_LARGE_FLOAT_ROUNDING(e, x) (x)
2012-12-02 08:06:37 +00:00
#else
2013-01-13 08:41:45 +00:00
# define SPROUT_MATH_THROW_LARGE_FLOAT_ROUNDING(e, x) throw (e)
2012-12-02 08:06:37 +00:00
#endif
2012-06-23 04:22:50 +00:00
#endif // #ifndef SPROUT_MATH_DETAIL_CONFIG_HPP