.. _program_listing_file__tmp_ws_src_proxsuite_include_proxsuite_helpers_version.hpp: Program Listing for File version.hpp ==================================== |exhale_lsh| :ref:`Return to documentation for file ` (``/tmp/ws/src/proxsuite/include/proxsuite/helpers/version.hpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp // // Copyright (c) 2022 INRIA // #ifndef PROXSUITE_HELPERS_VERSION_HPP #define PROXSUITE_HELPERS_VERSION_HPP #include "proxsuite/config.hpp" #include #include namespace proxsuite { namespace helpers { inline std::string printVersion(const std::string& delimiter = ".") { std::ostringstream oss; oss << PROXSUITE_MAJOR_VERSION << delimiter << PROXSUITE_MINOR_VERSION << delimiter << PROXSUITE_PATCH_VERSION; return oss.str(); } inline bool checkVersionAtLeast(signed int major_version, signed int minor_version, signed int patch_version) { return PROXSUITE_VERSION_AT_LEAST( major_version, minor_version, patch_version); } } // helpers } // proxsuite #endif // ifndef PROXSUITE_HELPERS_VERSION_HPP