This has been around since a long time: In non-developer builds,
we don't panic in SMB_ASSERT but happly continue with the error
condition, which is ridiculous and dangerous...
/**
* assert macros
*/
-#ifdef DEVELOPER
#define SMB_ASSERT(b) \
do { \
if (!(b)) { \
smb_panic("assert failed: " #b); \
} \
} while(0)
-#else
-/* redefine the assert macro for non-developer builds */
-#define SMB_ASSERT(b) do { if (!(b)) { \
- DEBUG(0,("PANIC: assert failed at %s(%d): %s\n", \
- __FILE__, __LINE__, #b)); }} while (0)
-#endif
#ifndef ABS
#define ABS(a) ((a)>0?(a):(-(a)))