mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 22:20:01 +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);
|
||||
|
||||
@@ -84,7 +84,7 @@
|
||||
|
||||
# undef CONFIG_LONG_IS_NOT_INT
|
||||
|
||||
/* The pointers and int are the same size */
|
||||
/* Pointers and int are the same size */
|
||||
|
||||
# undef CONFIG_PTR_IS_NOT_INT
|
||||
|
||||
@@ -152,9 +152,13 @@
|
||||
|
||||
# define CONFIG_LONG_IS_NOT_INT 1
|
||||
|
||||
/* The generic point and int are not the same size */
|
||||
|
||||
/* The generic pointer and int are not the same size
|
||||
* (for some SDCC architectures)
|
||||
*/
|
||||
|
||||
#if !defined(__z80) && defined(__gbz80)
|
||||
# define CONFIG_PTR_IS_NOT_INT 1
|
||||
#endif
|
||||
|
||||
/* SDCC does not support inline functions */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user