You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #include "dbcc/version.h"
-
- #define MACRO_STRINGIFY(macro_or_string) MACRO_STRINGIFY_ARG(macro_or_string)
- #define MACRO_STRINGIFY_ARG(contents) #contents
-
- #define DBCC_VERSION_MAJOR 0
- #define DBCC_VERSION_MINOR 1
- #define DBCC_VERSION_PATCH 1
-
- namespace ad {
- namespace dbcc {
-
- std::string version()
- {
- static const std::string VersionString = MACRO_STRINGIFY(DBCC_VERSION_MAJOR) "." MACRO_STRINGIFY(DBCC_VERSION_MINOR) "." MACRO_STRINGIFY(DBCC_VERSION_PATCH);
-
- #if defined(DEBUG)
- return VersionString + " Debug";
- #else /* !DEBUG */
- return VersionString;
- #endif /* DEBUG */
- }
-
- } // namespace dbcc
- } // namespace ad
|