Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add version header for CmdStan #1231

Merged
merged 1 commit into from
Jan 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions src/cmdstan/version.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#ifndef CMDSTAN_VERSION_HPP
#define CMDSTAN_VERSION_HPP

#include <string>

#ifndef STAN_STRING_EXPAND
#define STAN_STRING_EXPAND(s) #s
#endif

#ifndef STAN_STRING
#define STAN_STRING(s) STAN_STRING_EXPAND(s)
#endif

#define CMDSTAN_MAJOR 2
#define CMDSTAN_MINOR 33
#define CMDSTAN_PATCH 1

namespace cmdstan {

/** Major version number for CmdStan package. */
const std::string MAJOR_VERSION = STAN_STRING(CMDSTAN_MAJOR);

/** Minor version number for CmdStan package. */
const std::string MINOR_VERSION = STAN_STRING(CMDSTAN_MINOR);

/** Patch version for CmdStan package. */
const std::string PATCH_VERSION = STAN_STRING(CMDSTAN_PATCH);

} // namespace cmdstan

#endif