9 #ifndef CROCODDYL_CORE_UTILS_VERSION_HPP_ 10 #define CROCODDYL_CORE_UTILS_VERSION_HPP_ 15 #include "crocoddyl/config.hh" 24 inline std::string printVersion(
const std::string& delimiter =
".") {
25 std::ostringstream oss;
26 oss << CROCODDYL_MAJOR_VERSION << delimiter << CROCODDYL_MINOR_VERSION << delimiter << CROCODDYL_PATCH_VERSION;
41 inline bool checkVersionAtLeast(
int major_version,
int minor_version,
int patch_version) {
42 return CROCODDYL_MAJOR_VERSION > major_version ||
43 (CROCODDYL_MAJOR_VERSION >= major_version &&
44 (CROCODDYL_MINOR_VERSION > minor_version ||
45 (CROCODDYL_MINOR_VERSION >= minor_version && CROCODDYL_PATCH_VERSION >= patch_version)));
49 #endif // CROCODDYL_CORE_UTILS_VERSION_HPP_