Explorar o código

assert: Verify formatting

yzct12345 %!s(int64=5) %!d(string=hai) anos
pai
achega
7e846be376
Modificáronse 1 ficheiros con 6 adicións e 2 borrados
  1. 6 2
      src/common/assert.h

+ 6 - 2
src/common/assert.h

@@ -52,8 +52,12 @@ assert_noinline_call(const Fn& fn) {
 #define DEBUG_ASSERT(_a_) ASSERT(_a_)
 #define DEBUG_ASSERT(_a_) ASSERT(_a_)
 #define DEBUG_ASSERT_MSG(_a_, ...) ASSERT_MSG(_a_, __VA_ARGS__)
 #define DEBUG_ASSERT_MSG(_a_, ...) ASSERT_MSG(_a_, __VA_ARGS__)
 #else // not debug
 #else // not debug
-#define DEBUG_ASSERT(_a_) do {} while (0)
-#define DEBUG_ASSERT_MSG(_a_, _desc_, ...) do {} while (0)
+#define DEBUG_ASSERT(_a_)                                                                          \
+    do {                                                                                           \
+    } while (0)
+#define DEBUG_ASSERT_MSG(_a_, _desc_, ...)                                                         \
+    do {                                                                                           \
+    } while (0)
 #endif
 #endif
 
 
 #define UNIMPLEMENTED() ASSERT_MSG(false, "Unimplemented code!")
 #define UNIMPLEMENTED() ASSERT_MSG(false, "Unimplemented code!")