15 #include "build_config.h" 35 #include <boost/shared_ptr.hpp> 36 #include <boost/lexical_cast.hpp> 37 #include <boost/math/special_functions/fpclassify.hpp> 39 #ifdef HUMOTO_USE_THREADS_FOR_LOGGING 40 #include <boost/thread.hpp> 45 #define EIGEN_INITIALIZE_MATRICES_BY_NAN 49 #include <Eigen/Geometry> 57 #ifdef HUMOTO_DOXYGEN_PROCESSING 60 #define HUMOTO_GLOBAL_LOGGER_ENABLED 62 #endif // HUMOTO_DOXYGEN_PROCESSING 71 #ifdef HUMOTO_COMPILER_SUPPORTS_FUNC_ 72 #define HUMOTO_THROW_MSG(s) throw std::runtime_error(std::string("In ") + __func__ + "() // " + (s)) 74 #ifdef HUMOTO_COMPILER_SUPPORTS_FUNCTION_ 75 #define HUMOTO_THROW_MSG(s) throw std::runtime_error(std::string("In ") + __FUNCTION__ + "() // " + (s)) 77 #define HUMOTO_THROW_MSG(s) throw std::runtime_error(s) 79 #endif // HUMOTO_COMPILER_SUPPORTS_FUNC_ 84 #define HUMOTO_ASSERT(condition, message) 86 #define HUMOTO_ASSERT(condition, message) if (!(condition)) {HUMOTO_THROW_MSG(message);}; 90 #define HUMOTO_MACRO_SUBSTITUTE(arg) arg
based on the example taken from https://gcc.gnu.org/wiki/Visibility
The root namespace of HuMoTo.