More z8 compilation changes

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@671 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2008-02-12 14:37:55 +00:00
parent ba6cd0d3e2
commit 8d2f18e709
12 changed files with 81 additions and 40 deletions
+3 -2
View File
@@ -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);