diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-03-21 15:59:45 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-03-21 15:59:45 +0000 |
commit | 8c195a6502ab171dde27aa23ba9251079e18d3ac (patch) | |
tree | d5c48fb7c7fb53024fcb159608d056d776f0f9d5 | |
parent | dd6636d45615d762e82579f1cedf9d174b1873b1 (diff) | |
download | px4-nuttx-8c195a6502ab171dde27aa23ba9251079e18d3ac.tar.gz px4-nuttx-8c195a6502ab171dde27aa23ba9251079e18d3ac.tar.bz2 px4-nuttx-8c195a6502ab171dde27aa23ba9251079e18d3ac.zip |
Handler ZDI preprocessor
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1632 42af7a65-404d-4744-a932-0658087f49c3
-rw-r--r-- | nuttx/examples/uip/main.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/nuttx/examples/uip/main.c b/nuttx/examples/uip/main.c index fd67ff95f..1cc275814 100644 --- a/nuttx/examples/uip/main.c +++ b/nuttx/examples/uip/main.c @@ -86,10 +86,18 @@ * Definitions ****************************************************************************/ -#ifdef CONFIG_DEBUG -# define message(...) lib_lowprintf(__VA_ARGS__) +#ifdef CONFIG_CPP_HAVE_VARARGS +# ifdef CONFIG_DEBUG +# define message(...) lib_lowprintf(__VA_ARGS__) +# else +# define message(...) printf(__VA_ARGS__) +# endif #else -# define message(...) printf(__VA_ARGS__) +# ifdef CONFIG_DEBUG +# define message lib_lowprintf +# else +# define message (void) +# endif #endif /**************************************************************************** |