From e8b47a54f14e5a3bfc176b5fbd57f42d25373cf6 Mon Sep 17 00:00:00 2001 From: kvigor Date: Mon, 6 Mar 2000 05:57:05 +0000 Subject: [PATCH] Get wassert() to compile with Borland C++ git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@169 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- src/z80/z80.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/z80/z80.h b/src/z80/z80.h index 631d9cce..45dbf094 100644 --- a/src/z80/z80.h +++ b/src/z80/z80.h @@ -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") -- 2.47.2