From e2dfa4a4d0f4bb032baa68cbce7ab64b48d8d7ba Mon Sep 17 00:00:00 2001 From: patacongo Date: Sat, 9 Jun 2007 20:31:09 +0000 Subject: SDCC specific changes. Z80 support; re-enable __FILE__ and __LINE__ in assert -- might have broken the 8051/2 git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@277 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/include/assert.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'nuttx/include/assert.h') diff --git a/nuttx/include/assert.h b/nuttx/include/assert.h index 4222aa2d8..5f69b7178 100644 --- a/nuttx/include/assert.h +++ b/nuttx/include/assert.h @@ -53,7 +53,7 @@ #undef ASSERTCODE #undef DEBUGASSERT -#ifdef __GNUC__ +#if defined(__GNUC__) || defined(SDCC) # define ASSERT(f) \ { if (!(f)) up_assert((const ubyte *)__FILE__, (int)__LINE__); } @@ -105,9 +105,9 @@ extern "C" { #define EXTERN extern #endif -#ifdef __GNUC__ -EXTERN void up_assert(FAR const ubyte *filename, int linenum); -EXTERN void up_assert_code(FAR const ubyte *filename, int linenum, +#if defined(__GNUC__) || defined(SDCC) +EXTERN void up_assert(const ubyte *filename, int linenum); +EXTERN void up_assert_code(const ubyte *filename, int linenum, int error_code); #else EXTERN void up_assert(void); -- cgit v1.2.3