Compiler Directive to List Defined Macros?

Geoff Keating geoffk@cygnus.com
Thu Jun 29 11:38:00 GMT 2000


> 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>


More information about the Gcc mailing list