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