diff options
author | Michael Adam <obnox@samba.org> | 2012-05-11 16:41:18 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2012-05-11 20:16:38 +0200 |
commit | 8be7e6b7fb294bd1469a9a5a0081bcaa4f07e2f2 (patch) | |
tree | d9a3da4de0761ddee57b0e87de8b713fdadca6f7 /lib/util | |
parent | c11c4df762fd9e17bc8c5a422528bb80eae85e21 (diff) | |
download | samba-8be7e6b7fb294bd1469a9a5a0081bcaa4f07e2f2.tar.gz samba-8be7e6b7fb294bd1469a9a5a0081bcaa4f07e2f2.tar.bz2 samba-8be7e6b7fb294bd1469a9a5a0081bcaa4f07e2f2.zip |
util: reformat the DEVELOPER definition of SMB_ASSERT
Diffstat (limited to 'lib/util')
-rw-r--r-- | lib/util/samba_util.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/util/samba_util.h b/lib/util/samba_util.h index 6096722d17..f5577e6d8e 100644 --- a/lib/util/samba_util.h +++ b/lib/util/samba_util.h @@ -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)) { \ |