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
|
|
|
|
|
2012-12-02 08:06:37 +00:00
|
|
|
#if SPROUT_NOTHROW_INT_CONVERSION_OVERFLOW
|
|
|
|
# define SPROUT_MATH_DETAIL_INT_CONVERSION_OVERFLOW(e, x) (x)
|
|
|
|
#else
|
|
|
|
# define SPROUT_MATH_DETAIL_INT_CONVERSION_OVERFLOW(e, x) throw (e)
|
|
|
|
#endif
|
|
|
|
|
2012-06-23 04:22:50 +00:00
|
|
|
#endif // #ifndef SPROUT_MATH_DETAIL_CONFIG_HPP
|