about summary refs log tree commit diff
path: root/absl/flags/flag.cc
diff options
context:
space:
mode:
Diffstat (limited to 'absl/flags/flag.cc')
-rw-r--r--absl/flags/flag.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/absl/flags/flag.cc b/absl/flags/flag.cc
index 9af800796a61..e67f7304c6ff 100644
--- a/absl/flags/flag.cc
+++ b/absl/flags/flag.cc
@@ -22,7 +22,14 @@
 namespace absl {
 ABSL_NAMESPACE_BEGIN
 
-// This global nutex protects on-demand construction of flag objects in MSVC
+#ifndef NDEBUG
+#define ABSL_FLAGS_GET(T) \
+  T GetFlag(const absl::Flag<T>& flag) { return flag.Get(); }
+ABSL_FLAGS_INTERNAL_BUILTIN_TYPES(ABSL_FLAGS_GET)
+#undef ABSL_FLAGS_GET
+#endif
+
+// This global mutex protects on-demand construction of flag objects in MSVC
 // builds.
 #if defined(_MSC_VER) && !defined(__clang__)