From 4b45b32f0e5a6ac043c8d80aac8576b25f24fdd9 Mon Sep 17 00:00:00 2001 From: bernie Date: Sat, 8 Sep 2007 20:56:16 +0000 Subject: [PATCH] Remove useless non-debug versions of the except macros. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@808 38d2e660-2303-0410-9eaa-f027e97ec537 --- mware/except.h | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/mware/except.h b/mware/except.h index af4c0644..5229f3f5 100755 --- a/mware/except.h +++ b/mware/except.h @@ -32,15 +32,9 @@ extern jmp_buf except_stack[EXCEPT_CONTEXTS]; extern int except_top; -#ifdef _DEBUG -# define PUSH_EXCEPT ASSERT(except_top < EXCEPT_CONTEXTS), setjmp(except_stack[except_top++])) -# define POP_EXCEPT (ASSERT(except_top > 0), --except_top) -# define DO_EXCEPT (ASSERT(except_top > 0), longjmp(except_stack[--except_top], true)) -#else -# define PUSH_EXCEPT (setjmp(except_stack[except_top++])) -# define POP_EXCEPT (--except_top) -# define DO_EXCEPT (longjmp(except_stack[--except_top], true)) -#endif +#define PUSH_EXCEPT (ASSERT(except_top < EXCEPT_CONTEXTS), setjmp(except_stack[except_top++])) +#define POP_EXCEPT (ASSERT(except_top > 0), --except_top) +#define DO_EXCEPT (ASSERT(except_top > 0), longjmp(except_stack[--except_top], true)) /** * Jump buffer to use when throwing an exception or aborting an operation -- 2.25.1