[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Can enumerator values be used in a #if preprocessordi

From: Wim Lewis
Subject: Re: [avr-gcc-list] Can enumerator values be used in a #if preprocessordirective?
Date: Mon, 29 Aug 2011 12:15:21 -0700 (PDT)

On Mon, 29 Aug 2011, Weddington, Eric wrote:
For the preprocessor purposes, I would bet that somehow "last" evaluates to 0, so of course the condition will always be true.

Yes, I think this is part of the language standard (for better or worse). I don't have a standard cite but it's described in the GNU docs:
   "[6] Identifiers that are not macros, which are all considered to be
        the number zero. [....]"

reply via email to

[Prev in Thread] Current Thread [Next in Thread]