This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Compiler Directive to List Defined Macros?
- To: rocombs at cs dot nmsu dot edu
- Subject: Re: Compiler Directive to List Defined Macros?
- From: Geoff Keating <geoffk at cygnus dot com>
- Date: Thu, 29 Jun 2000 11:37:25 -0700
- CC: rocombs at cs dot nmsu dot edu, gcc at gcc dot gnu dot org
- References: <200006291518.JAA27421@quito.cs.nmsu.edu>
> Date: Thu, 29 Jun 2000 09:18:38 -0600
> From: Ross Combs <rocombs@cs.nmsu.edu>
> Hmm... I thought it was __func__. That is why I tried using it in preference
> to __PRETTY_FUNCTION__. Do you know how you are suppossed to test for it?
Yes, it's __func__.
You can test for the availability of C99 features by seeing if the
macro __STDC_VERSION__ is 199901L or greater.
--
- Geoffrey Keating <geoffk@cygnus.com>