mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 05:42:05 +08:00
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
This commit is contained in:
+4
-4
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user