Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add version information #322

Open
mxmlnkn opened this issue Jan 7, 2024 · 0 comments
Open

Add version information #322

mxmlnkn opened this issue Jan 7, 2024 · 0 comments
Assignees

Comments

@mxmlnkn
Copy link
Contributor

mxmlnkn commented Jan 7, 2024

It might be helpful to have version information defined in the header, e.g., cxxopts has something like this:

#define CXXOPTS__VERSION_MAJOR 3
#define CXXOPTS__VERSION_MINOR 1
#define CXXOPTS__VERSION_PATCH 1

namespace cxxopts {
static constexpr struct {
  uint8_t major, minor, patch;
} version = {
  CXXOPTS__VERSION_MAJOR,
  CXXOPTS__VERSION_MINOR,
  CXXOPTS__VERSION_PATCH
};
} // namespace cxxopts
@mjansson mjansson self-assigned this Apr 1, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants