This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How cpp deal with #abi(n32) ?


Pan ruochen wrote:
Hi All,

There is a header file in my project:

[...]
#if #abi(n32) || #abi(n64) || #abi(64) || #abi(eabi)
[...]

I can't find any explaination for the syntax '#abi(n32)' in gcc manual. But gcc can still process this header file and takes the #else branch during compilation. So, how gcc deal with this header file?

Those are preprocessor assertions:


http://gcc.gnu.org/onlinedocs/gcc-4.3.2/cpp/Assertions.html

I don't believe that the #abi assertion is a built-in in any stock GCC version, so they are probably defined in some other header file in your program.

David Daney


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]