www.digitalmars.com         C & C++   DMDScript  

c++ - PreDefines

reply David Qualls <davidlqualls yahoo.com> writes:
How does one get a listing of compiler predefines?

I wish all compilers had a command-line switch you could throw to
dump a listing.  I'll bet I've spent 6 hours over the last 45 days
just looking for predefines for various compilers.  I think I saw
them for dmc in some Digital Mars documentation somewhere, but I
can't remember where...

Ah Hah!  I just found it at
http://www.digitalmars.com/ctg/predefined.html

Well, I *STILL* wish *ALL* compilers (including dmc) would report
their pre-defines in response to a command-line switch (if it were
possible; I suppose it'd have to read all the #pragma's before it
would know exactly which ones would be #defined -- i guess).

David
Nov 21 2006
parent Walter Bright <newshound digitalmars.com> writes:
David Qualls wrote:
 Well, I *STILL* wish *ALL* compilers (including dmc) would report
 their pre-defines in response to a command-line switch (if it were
 possible; I suppose it'd have to read all the #pragma's before it
 would know exactly which ones would be #defined -- i guess).

It's a good idea.
Nov 21 2006