summaryrefslogtreecommitdiff
path: root/src/mongo/util/debug_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/util/debug_util.h')
-rw-r--r--src/mongo/util/debug_util.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/mongo/util/debug_util.h b/src/mongo/util/debug_util.h
index 2b1ae82b72b..97b3011f1eb 100644
--- a/src/mongo/util/debug_util.h
+++ b/src/mongo/util/debug_util.h
@@ -34,9 +34,9 @@
namespace mongo {
#if defined(MONGO_CONFIG_DEBUG_BUILD)
- const bool kDebugBuild = true;
+const bool kDebugBuild = true;
#else
- const bool kDebugBuild = false;
+const bool kDebugBuild = false;
#endif
#define MONGO_DEV if (kDebugBuild)
@@ -44,16 +44,17 @@ namespace mongo {
// The following declare one unique counter per enclosing function.
// NOTE The implementation double-increments on a match, but we don't really care.
-#define MONGO_SOMETIMES( occasion, howOften ) for( static unsigned occasion = 0; ++occasion % howOften == 0; )
+#define MONGO_SOMETIMES(occasion, howOften) \
+ for (static unsigned occasion = 0; ++occasion % howOften == 0;)
#define SOMETIMES MONGO_SOMETIMES
-#define MONGO_OCCASIONALLY SOMETIMES( occasionally, 16 )
+#define MONGO_OCCASIONALLY SOMETIMES(occasionally, 16)
#define OCCASIONALLY MONGO_OCCASIONALLY
-#define MONGO_RARELY SOMETIMES( rarely, 128 )
+#define MONGO_RARELY SOMETIMES(rarely, 128)
#define RARELY MONGO_RARELY
-#define MONGO_ONCE for( static bool undone = true; undone; undone = false )
+#define MONGO_ONCE for (static bool undone = true; undone; undone = false)
#define ONCE MONGO_ONCE
-} // namespace mongo
+} // namespace mongo