[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: predifined macros ?
From: |
Dirk Hoffmann |
Subject: |
Re: predifined macros ? |
Date: |
Wed, 13 Apr 2005 14:33:23 +0200 |
On Wed, 13 Apr 2005, Ulrich Lauther wrote:
> How can I find out the names and values of predefined values?
>
> I tried g++ -dM test.C
>
> but that doesn't produce any output.
Macros are defined in the preprocessor. The following does what you want:
cpp -dM /dev/null
If you absolutely need to go through g++, this is also valid:
echo | g++ -dM -E -