Remove useless non-debug versions of the except macros.
authorbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Sat, 8 Sep 2007 20:56:16 +0000 (20:56 +0000)
committerbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Sat, 8 Sep 2007 20:56:16 +0000 (20:56 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@808 38d2e660-2303-0410-9eaa-f027e97ec537

mware/except.h

index af4c06445c534ac580c15bb0d63759a78e7ed12e..5229f3f5f23eafbd407173ea15a26e926e689a57 100755 (executable)
 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