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.

version.cpp 623 B

2 years ago
12345678910111213141516171819202122232425
  1. #include "dbcc/version.h"
  2. #define MACRO_STRINGIFY(macro_or_string) MACRO_STRINGIFY_ARG(macro_or_string)
  3. #define MACRO_STRINGIFY_ARG(contents) #contents
  4. #define DBCC_VERSION_MAJOR 0
  5. #define DBCC_VERSION_MINOR 1
  6. #define DBCC_VERSION_PATCH 1
  7. namespace ad {
  8. namespace dbcc {
  9. std::string version()
  10. {
  11. static const std::string VersionString = MACRO_STRINGIFY(DBCC_VERSION_MAJOR) "." MACRO_STRINGIFY(DBCC_VERSION_MINOR) "." MACRO_STRINGIFY(DBCC_VERSION_PATCH);
  12. #if defined(DEBUG)
  13. return VersionString + " Debug";
  14. #else /* !DEBUG */
  15. return VersionString;
  16. #endif /* DEBUG */
  17. }
  18. } // namespace dbcc
  19. } // namespace ad