diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-04-25 15:19:59 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-04-25 15:19:59 -0600 |
commit | 1ffc15c3233c8d61953fc2ebc80b5d3c46fc429f (patch) | |
tree | 95050f5e635b87d26f4dd98612b05edf632b2a96 /nuttx/include/assert.h | |
parent | 5f6e91b0ed1b373d0b4f963b0e0f8f7fe05ec766 (diff) | |
download | px4-nuttx-1ffc15c3233c8d61953fc2ebc80b5d3c46fc429f.tar.gz px4-nuttx-1ffc15c3233c8d61953fc2ebc80b5d3c46fc429f.tar.bz2 px4-nuttx-1ffc15c3233c8d61953fc2ebc80b5d3c46fc429f.zip |
Remove up_assert_code
Diffstat (limited to 'nuttx/include/assert.h')
-rw-r--r-- | nuttx/include/assert.h | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/nuttx/include/assert.h b/nuttx/include/assert.h index f3e2854fc..29eb7a4b3 100644 --- a/nuttx/include/assert.h +++ b/nuttx/include/assert.h @@ -61,9 +61,6 @@ # define ASSERT(f) \ { if (!(f)) up_assert((const uint8_t *)__FILE__, (int)__LINE__); } -# define ASSERTCODE(f, code) \ - { if (!(f)) up_assert_code((const uint8_t *)__FILE__, (int)__LINE__, code); } - # define VERIFY(f) \ { if ((f) < 0) up_assert((const uint8_t *)__FILE__, (int)__LINE__); } @@ -77,16 +74,13 @@ # define DEBUGVERIFY(f) ((void)(f)) # endif /* CONFIG_DEBUG */ -# define PANIC(code) \ - up_assert_code((const uint8_t *)__FILE__, (int)__LINE__, (code)|0x8000) +# define PANIC() \ + up_assert((const uint8_t *)__FILE__, (int)__LINE__) #else # define ASSERT(f) \ { if (!(f)) up_assert(); } -# define ASSERTCODE(f, code) \ - { if (!(f)) up_assert_code(code); } - # define VERIFY(f) \ { if ((f) < 0) up_assert(); } @@ -101,7 +95,7 @@ # endif /* CONFIG_DEBUG */ # define PANIC(code) \ - up_assert_code((code)|0x8000) + up_assert() #endif @@ -131,11 +125,8 @@ extern "C" #ifdef CONFIG_HAVE_FILENAME void up_assert(FAR const uint8_t *filename, int linenum) noreturn_function; -void up_assert_code(FAR const uint8_t *filename, int linenum, int errcode) - noreturn_function; #else void up_assert(void) noreturn_function; -void up_assert_code(int errcode) noreturn_function; #endif #undef EXTERN |