[PATCH v2] dtc: Add support for named integer constants

Scott Wood scottwood at freescale.com
Thu Sep 29 02:08:02 EST 2011


On 09/27/2011 07:29 PM, David Gibson wrote:
> On Tue, Sep 20, 2011 at 12:35:29PM -0500, Scott Wood wrote:
>> Another disadvantage of any approach that tries to separate macros from
>> the underlying language is that you can't have anything be conditional
>> on an expression that the macro layer doesn't understand.
> 
> That one doesn't follow, actually.  The macro can't implement a
> conditional itself, but it could expand to a (constant) conditional
> expression which is evaluated later.

Right, you can always implement conditionals in the underlying language,
but the macro processor can't directly use the results.  This can be an
issue if the intended use is to be heavily reliant on macros as a
substitute for expressiveness in the underlying language.

-Scott



More information about the devicetree-discuss mailing list