diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-11-01 03:14:43 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-11-01 03:14:43 +0100 |
commit | 9de80e7abceb3c64c658f2aeeb5ca68e980e89c8 (patch) | |
tree | f0e3ad8b63afc0bf0adf7a2e8a2a5cbbceadf09b /source3/include/smb_macros.h | |
parent | 72af9b01dc7ee00d79908760af6051f8794fa2b8 (diff) | |
download | samba-9de80e7abceb3c64c658f2aeeb5ca68e980e89c8.tar.gz samba-9de80e7abceb3c64c658f2aeeb5ca68e980e89c8.tar.bz2 samba-9de80e7abceb3c64c658f2aeeb5ca68e980e89c8.zip |
Samba3: Include util.h header file rather than having custom prototypes.
Diffstat (limited to 'source3/include/smb_macros.h')
-rw-r--r-- | source3/include/smb_macros.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/source3/include/smb_macros.h b/source3/include/smb_macros.h index d2e0aa95ac..668dc186d3 100644 --- a/source3/include/smb_macros.h +++ b/source3/include/smb_macros.h @@ -45,17 +45,7 @@ #define SAFE_FREE(x) do { if ((x) != NULL) {free(x); x=NULL;} } while(0) #endif -/* assert macros */ -#ifdef DEVELOPER -#define SMB_ASSERT(b) ( (b) ? (void)0 : \ - (DEBUG(0,("PANIC: assert failed at %s(%d): %s\n", \ - __FILE__, __LINE__, #b)), smb_panic("assert failed: " #b))) -#else -/* redefine the assert macro for non-developer builds */ -#define SMB_ASSERT(b) ( (b) ? (void)0 : \ - (DEBUG(0,("PANIC: assert failed at %s(%d): %s\n", \ - __FILE__, __LINE__, #b)))) -#endif + #define SMB_WARN(condition, message) \ ((condition) ? (void)0 : \ |