VersionInfo class
#include <slang/util/VersionInfo.h>
Provides access to compile-time generated version info about the library.
Public static functions
- static int getMajor()
- Gets the major version number of the library.
- static int getMinor()
- Gets the minor version number of the library.
- static int getPatch()
- Gets the patch version number of the library.
-
static std::
string_view getPrerelease() - Gets the pre-release version segment of the library, or an empty string if this is not a pre-release build.
-
static std::
string_view getHash() - Gets a string describing the git hash of the library.
-
static std::
string getVersionString() - Gets the full version string of the library, formatted as
major.minor.patch[-prerelease]+hash.