]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
util: reformat the DEVELOPER definition of SMB_ASSERT
authorMichael Adam <obnox@samba.org>
Fri, 11 May 2012 14:41:18 +0000 (16:41 +0200)
committerMichael Adam <obnox@samba.org>
Fri, 11 May 2012 18:16:38 +0000 (20:16 +0200)
lib/util/samba_util.h

index 6096722d17177b26f8f3633ca36400036d3956a1..f5577e6d8ef1588d849317eb6547f96d306f69e3 100644 (file)
@@ -46,9 +46,14 @@ extern const char *panic_action;
  * assert macros 
  */
 #ifdef DEVELOPER
-#define SMB_ASSERT(b) do { if (!(b)) { \
-        DEBUG(0,("PANIC: assert failed at %s(%d): %s\n", \
-                __FILE__, __LINE__, #b)); smb_panic("assert failed: " #b); }} while(0)
+#define SMB_ASSERT(b) \
+do { \
+       if (!(b)) { \
+               DEBUG(0,("PANIC: assert failed at %s(%d): %s\n", \
+                        __FILE__, __LINE__, #b)); \
+               smb_panic("assert failed: " #b); \
+       } \
+} while(0)
 #else
 /* redefine the assert macro for non-developer builds */
 #define SMB_ASSERT(b) do { if (!(b)) { \