Get wassert() to compile with Borland C++
authorkvigor <kvigor@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 6 Mar 2000 05:57:05 +0000 (05:57 +0000)
committerkvigor <kvigor@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 6 Mar 2000 05:57:05 +0000 (05:57 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@169 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/z80/z80.h

index 631d9cceb1eaabfdc246c24fdc7ca503bc16ed51..45dbf094495db49a2c82be052fc6c5e747d6db0e 100644 (file)
@@ -15,8 +15,8 @@ typedef struct {
 
 extern Z80_OPTS z80_opts;
 
-#define wassertl(a,s)  (a) ? 0 : \
-               werror (E_INTERNAL_ERROR,__FILE__,__LINE__, s)
+#define wassertl(a,s)  ((a) ? 0 : \
+        (werror (E_INTERNAL_ERROR,__FILE__,__LINE__, s), 0))
 
 #define wassert(a)    wassertl(a,"code generator internal error")