2022-05-09 21:47:06 +02:00
|
|
|
#ifndef OPENMC_VERSION_H
|
|
|
|
|
#define OPENMC_VERSION_H
|
|
|
|
|
|
2021-04-22 16:46:23 -04:00
|
|
|
#include "openmc/array.h"
|
2021-01-18 12:37:18 -06:00
|
|
|
|
|
|
|
|
namespace openmc {
|
|
|
|
|
|
2021-01-18 22:27:58 -06:00
|
|
|
// OpenMC major, minor, and release numbers
|
2022-02-10 10:09:35 -06:00
|
|
|
// clang-format off
|
2021-01-18 22:27:58 -06:00
|
|
|
constexpr int VERSION_MAJOR {@OPENMC_VERSION_MAJOR@};
|
|
|
|
|
constexpr int VERSION_MINOR {@OPENMC_VERSION_MINOR@};
|
2025-02-22 05:48:11 +06:00
|
|
|
constexpr int VERSION_RELEASE {@OPENMC_VERSION_PATCH@};
|
|
|
|
|
constexpr bool VERSION_DEV {@OPENMC_DEV_STATE@};
|
|
|
|
|
constexpr const char* VERSION_COMMIT_COUNT = "@OPENMC_COMMIT_COUNT@";
|
|
|
|
|
constexpr const char* VERSION_COMMIT_HASH = "@OPENMC_COMMIT_HASH@";
|
2021-01-18 22:27:58 -06:00
|
|
|
constexpr std::array<int, 3> VERSION {VERSION_MAJOR, VERSION_MINOR, VERSION_RELEASE};
|
2022-02-10 10:09:35 -06:00
|
|
|
// clang-format on
|
2021-01-18 12:37:18 -06:00
|
|
|
|
2022-02-10 10:09:35 -06:00
|
|
|
} // namespace openmc
|
2022-05-09 21:47:06 +02:00
|
|
|
|
|
|
|
|
#endif // OPENMC_VERSION_H
|