use ( (void ) 0 ) instead of just (void)

This commit is contained in:
Jeff Hill
2000-11-08 20:24:42 +00:00
parent b569796b4a
commit 3b422a60fa
+2 -2
View File
@@ -64,12 +64,12 @@ epicsShareFunc extern void epicsShareAPI epicsAssert ();
#if (defined(__STDC__) || defined(__cplusplus)) && !defined(VAXC)
#define assert(exp) \
{if (!(exp)) epicsAssert (__FILE__, __LINE__, #exp, epicsAssertAuthor);}
( (exp) ? ( void ) 0 : epicsAssert( __FILE__, __LINE__, #exp, epicsAssertAuthor ) )
#else /*__STDC__ or __cplusplus*/
#define assert(exp) \
{if (!(exp)) epicsAssert (__FILE__, __LINE__, "", epicsAssertAuthor);}
( (exp) ? ( void ) 0 : epicsAssert( __FILE__, __LINE__, "", epicsAssertAuthor ) )
#endif /* (__STDC__ or __cplusplus) and not VAXC */