From: bernie Date: Sat, 8 Sep 2007 20:56:16 +0000 (+0000) Subject: Remove useless non-debug versions of the except macros. X-Git-Tag: 1.0.0~433 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=4b45b32f0e5a6ac043c8d80aac8576b25f24fdd9;p=bertos.git 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 --- 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