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 _______________________________________________ devicetree-discuss mailing list devicetree-discuss@lists.ozlabs.org https://lists.ozlabs.org/listinfo/devicetree-discuss