summaryrefslogtreecommitdiffstats
path: root/nuttx/include/assert.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2008-02-12 14:37:55 +0000
committerpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2008-02-12 14:37:55 +0000
commit6544f6e6ea81bac9dd4c9350c6ad45868996c7cb (patch)
tree30a0eaa4bcc50079c8545227554a9d47c336d8fe /nuttx/include/assert.h
parent925e7904ebf59ee37a63a9f8ac117d62b458b5d4 (diff)
More z8 compilation changes
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@671 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/include/assert.h')
-rw-r--r--nuttx/include/assert.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/nuttx/include/assert.h b/nuttx/include/assert.h
index 5f69b71781..62c8baa257 100644
--- a/nuttx/include/assert.h
+++ b/nuttx/include/assert.h
@@ -41,6 +41,7 @@
************************************************************/
#include <sys/types.h>
+#include <nuttx/compiler.h>
/************************************************************
* Definitions
@@ -53,7 +54,7 @@
#undef ASSERTCODE
#undef DEBUGASSERT
-#if defined(__GNUC__) || defined(SDCC)
+#ifdef CONFIG_HAVE_FILENAME
# define ASSERT(f) \
{ if (!(f)) up_assert((const ubyte *)__FILE__, (int)__LINE__); }
@@ -105,7 +106,7 @@ extern "C" {
#define EXTERN extern
#endif
-#if defined(__GNUC__) || defined(SDCC)
+#ifdef CONFIG_HAVE_FILENAME
EXTERN void up_assert(const ubyte *filename, int linenum);
EXTERN void up_assert_code(const ubyte *filename, int linenum,
int error_code);