Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/lib/libsa



On Tue, 18 Mar 2008, matthew green wrote:
>    Is there an easy way of saying
>    
>       #if optimise_for_space
>               use this implementation
>       #else
>               use another implementation
>       #endif
> 
> yes - i had considered suggesting this.  you want to check
> for __OPTIMIZE__ IIRC.  the gcc manual probably has it.

Found it:  __OPTIMIZE_SIZE__, documented in "info cpp".

--apb (Alan Barrett)


Home | Main Index | Thread Index | Old Index