OpenMC/include/openmc/version.h.in

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
669 B
C
Raw Permalink Normal View History

2022-05-09 21:47:06 +02:00
#ifndef OPENMC_VERSION_H
#define OPENMC_VERSION_H
#include "openmc/array.h"
namespace openmc {
// OpenMC major, minor, and release numbers
2022-02-10 10:09:35 -06:00
// clang-format off
constexpr int VERSION_MAJOR {@OPENMC_VERSION_MAJOR@};
constexpr int VERSION_MINOR {@OPENMC_VERSION_MINOR@};
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@";
constexpr std::array<int, 3> VERSION {VERSION_MAJOR, VERSION_MINOR, VERSION_RELEASE};
2022-02-10 10:09:35 -06:00
// clang-format on
2022-02-10 10:09:35 -06:00
} // namespace openmc
2022-05-09 21:47:06 +02:00
#endif // OPENMC_VERSION_H