httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dirk.vanGulik" <Dirk.vanGu...@jrc.it>
Subject Re: code cleanup
Date Tue, 22 Jul 1997 07:34:02 GMT
>      There is a lot of occurrences of the code in the form
> #if defined(STUFF) 
>      some_func()
> #endif
>      which is really "not good" especially if some_func() is 
> invoked multiple times.  One of the possible solutions is to change 
> the above to following:
> 
> #if defined (STUFF)
> some_func() 
> {
>      ...
> }
> #else
> #define some_func() /* nop */
> #endif

Huh, it is #if-def-ed as in pre-processor (cpp(9f)) directives; so
the compiler does not even get to see it... or am I missing
something blaringly obvious (I know, I just had the first italian
caffee lungo, so I might not be up to speed).

Dw.

Mime
View raw message