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
64 int constexpr version_major() {
return GOOGLE_CLOUD_CPP_VERSION_MAJOR; }
71 int constexpr version_minor() {
return GOOGLE_CLOUD_CPP_VERSION_MINOR; }
78 int constexpr version_patch() {
return GOOGLE_CLOUD_CPP_VERSION_PATCH; }
81 auto constexpr kMaxMinorVersions = 100;
82 auto constexpr kMaxPatchVersions = 100;
88 "version_minor() should be < kMaxMinorVersions");
90 "version_patch() should be < kMaxPatchVersions");
91 return internal::kMaxPatchVersions *