small change in stack handling macros, to avoid crash when compiled with
authorborutr <borutr@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 20 Apr 2003 19:43:52 +0000 (19:43 +0000)
committerborutr <borutr@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 20 Apr 2003 19:43:52 +0000 (19:43 +0000)
MSVC with global optimization enabled (probably an cl compiler bug ;-)

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2554 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/SDCCglobl.h

index 98ab3804158961830570d3a9c0b67899384f4e2e..8183937555eb6a10f4621b990e7b640fa52e1aea 100644 (file)
@@ -131,12 +131,12 @@ typedef int bool;
                                 ? (STACK_ERR(0, stack), *p_##stack)   \
                                 : *p_##stack                          )
 
-#define  STACK_ERR(o, stack)    (werror(E_STACK_VIOLATION, #stack,    \
+#define  STACK_ERR(o, stack)    (fatal(1, E_STACK_VIOLATION, #stack,  \
                                         (o < 0)                       \
                                         ? "underflow"                 \
                                         : (o > 0)                     \
                                           ? "overflow"                \
-                                          : "empty"), exit(1))
+                                          : "empty"))
 
 /* optimization options */
 struct optimize