changeset 247:3cc76ae3c2f9

make sure we use the wrappers
author mortenp
date Sat, 19 Jun 2004 13:48:23 +1000
parents 14fcae5e6be5
children 42186df3f70a
files include/mlmmj.h
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/include/mlmmj.h	Sat Jun 19 13:47:58 2004 +1000
+++ b/include/mlmmj.h	Sat Jun 19 13:48:23 2004 +1000
@@ -67,4 +67,12 @@
 			exit(EXIT_FAILURE); \
 			};
 
+/* make sure we use the wrappers */
+#ifndef _MEMORY_C
+#define malloc	Bad_programmer__no_biscuit
+#define realloc	Bad_programmer__no_biscuit
+#define free	Bad_programmer__no_biscuit
+#define strdup	Bad_programmer__no_biscuit
+#endif  /* _MEMORY_C */
+
 #endif /* MLMMJ_GENERIC_INCLUDES */