summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-05-11 16:42:33 +0200
committerMichael Adam <obnox@samba.org>2012-05-11 20:16:38 +0200
commit7eb812566832724b06760fe709de106302146068 (patch)
treee784d8defbc627124cde3489f1bd5bd89cd40eac /lib
parent8be7e6b7fb294bd1469a9a5a0081bcaa4f07e2f2 (diff)
downloadsamba-7eb812566832724b06760fe709de106302146068.tar.gz
samba-7eb812566832724b06760fe709de106302146068.tar.bz2
samba-7eb812566832724b06760fe709de106302146068.zip
util: use SMB_ASSERT with panic also in non-developer builds !!!
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...
Diffstat (limited to 'lib')
-rw-r--r--lib/util/samba_util.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/util/samba_util.h b/lib/util/samba_util.h
index f5577e6d8e..f4ffe6472c 100644
--- a/lib/util/samba_util.h
+++ b/lib/util/samba_util.h
@@ -45,7 +45,6 @@ extern const char *panic_action;
/**
* assert macros
*/
-#ifdef DEVELOPER
#define SMB_ASSERT(b) \
do { \
if (!(b)) { \
@@ -54,12 +53,6 @@ do { \
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)))