15 #ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_VERSION_H
16 #define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_VERSION_H
18 #include "google/cloud/internal/attributes.h"
19 #include "google/cloud/internal/port_platform.h"
20 #include "google/cloud/internal/version_info.h"
23 #define GOOGLE_CLOUD_CPP_VCONCAT(Ma, Mi, Pa) v##Ma##_##Mi##_##Pa
25 #define GOOGLE_CLOUD_CPP_NS
27 GOOGLE_CLOUD_CPP_VERSION_MINOR
,
28 GOOGLE_CLOUD_CPP_VERSION_PATCH
)
43 #define GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
45 #define GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
65 int constexpr version_major() {
return GOOGLE_CLOUD_CPP_VERSION_MAJOR; }
72 int constexpr version_minor() {
return GOOGLE_CLOUD_CPP_VERSION_MINOR; }
79 int constexpr version_patch() {
return GOOGLE_CLOUD_CPP_VERSION_PATCH; }
87 return GOOGLE_CLOUD_CPP_VERSION_PRE_RELEASE;
91 auto constexpr kMaxMinorVersions = 100;
92 auto constexpr kMaxPatchVersions = 100;
98 "version_minor() should be < kMaxMinorVersions");
100 "version_patch() should be < kMaxPatchVersions");
101 return internal::kMaxPatchVersions *