summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorPeter Johnson <peter@tortall.net>2001-12-03 03:05:51 +0000
committerPeter Johnson <peter@tortall.net>2001-12-03 03:05:51 +0000
commitb3cb8c0292d307eff8f7646810d9e12f8f85f564 (patch)
tree9341628dc0393e1a79c16000ef057558f94acdcb /util.h
parente8d7d5cad93f6e055b0080395aa545e0e57d654f (diff)
downloadyasm-b3cb8c0292d307eff8f7646810d9e12f8f85f564.tar.gz
Move assert.h include to util.h
In util.h, define NDEBUG if not running lint. svn path=/trunk/yasm/; revision=385
Diffstat (limited to 'util.h')
-rw-r--r--util.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/util.h b/util.h
index 70a63453..50b6a310 100644
--- a/util.h
+++ b/util.h
@@ -30,10 +30,15 @@
#include <stdio.h>
+#if !defined(lint)
+# define NDEBUG
+#endif
+
#ifdef STDC_HEADERS
# include <stddef.h>
# include <stdlib.h>
# include <string.h>
+# include <assert.h>
#endif
#if defined(lint)