changeset 73:420d5997f1d9

removed (unused) BINDIR added MY_ASSERT macro
author mortenp
date Wed, 12 May 2004 05:49:32 +1000
parents 42d75f6f0a3d
children 96d4a1bf35e9
files include/mlmmj.h
diffstat 1 files changed, 6 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/include/mlmmj.h	Wed May 12 01:50:04 2004 +1000
+++ b/include/mlmmj.h	Wed May 12 05:49:32 2004 +1000
@@ -12,13 +12,6 @@
 #include "../config.h"
 
 #define RELAYHOST "127.0.0.1"
-
-/* must end in a slash, if not empty! */
-#ifndef BINDIR
-#define BINDIR ""
-#endif
-
-
 #define READ_BUFSIZE 2048
 #define RECIPDELIM '+'
 
@@ -29,4 +22,10 @@
 
 void print_version(const char *prg);
 
+#define MY_ASSERT(expression) if (!(expression)) { \
+			log_error(LOG_ARGS, "assertion failed"); \
+			exit(EXIT_FAILURE); \
+		}
+
+
 #endif /* MLMMJ_GENERIC_INCLUDES */