Useless includes (maybe...)

Juergen Funk Mailinglist Juergen.Funk_ml at cib.de
Fri Nov 7 02:02:35 PST 2014


Hi all,

what i discuss with Tor

i mean the construct 
         (void) bSuccess;
         assert(bSuccess);
is a little bit ugly
 
In <assert.h>
 
#ifdef  NDEBUG
 
#define assert(_Expression)     ((void)0)
 
#else
 
Why '((void)0)' better empty or
 
we define this
 
#ifdef  NDEBUG
 
#define assert(_Expression)     ((void) (Expression) )
 
#else
 
 
But I am not really sure for work in all situations, but we can do define a special macro for this situation
 
 
Juergen




More information about the LibreOffice mailing list