mirror of
https://github.com/samba-team/samba.git
synced 2025-01-27 14:04:05 +03:00
util: reformat the DEVELOPER definition of SMB_ASSERT
This commit is contained in:
parent
c11c4df762
commit
8be7e6b7fb
@ -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)) { \
|
||||
|
Loading…
x
Reference in New Issue
Block a user