version.hpp 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. // Copyright (c) 2019, QuantStack and Mamba Contributors
  2. //
  3. // Distributed under the terms of the BSD 3-Clause License.
  4. //
  5. // The full license is in the file LICENSE, distributed with this software.
  6. #ifndef LIBMAMBA_VERSION_HPP
  7. #define LIBMAMBA_VERSION_HPP
  8. #include <array>
  9. #include <string>
  10. #define LIBMAMBA_VERSION_MAJOR 1
  11. #define LIBMAMBA_VERSION_MINOR 4
  12. #define LIBMAMBA_VERSION_PATCH 1
  13. // Binary version
  14. #define LIBMAMBA_BINARY_CURRENT 2
  15. #define LIBMAMBA_BINARY_REVISION 0
  16. #define LIBMAMBA_BINARY_AGE 0
  17. #define __LIBMAMBA_STRINGIZE_IMPL(s) #s
  18. #define __LIBMAMBA_STRINGIZE(s) __LIBMAMBA_STRINGIZE_IMPL(s)
  19. #define LIBMAMBA_VERSION \
  20. (LIBMAMBA_VERSION_MAJOR * 10000 + LIBMAMBA_VERSION_MINOR * 100 + LIBMAMBA_VERSION_PATCH)
  21. #define LIBMAMBA_VERSION_STRING \
  22. __LIBMAMBA_STRINGIZE(LIBMAMBA_VERSION_MAJOR) \
  23. "." __LIBMAMBA_STRINGIZE(LIBMAMBA_VERSION_MINOR) "." __LIBMAMBA_STRINGIZE(LIBMAMBA_VERSION_PATCH)
  24. namespace mamba
  25. {
  26. std::string version();
  27. std::array<int, 3> version_arr();
  28. }
  29. #endif