LWN.net Logo

Quotes of the week

Quotes of the week

Posted Apr 19, 2012 20:33 UTC (Thu) by wahern (subscriber, #37304)
In reply to: Quotes of the week by jzbiciak
Parent article: Quotes of the week

You don't need more than two for STRINGIFY to work reliably, but the # and ## operators only work in macro replacement lists. In this case, I guess IS_DEFINED provides that extra level of indirection to do the CONFIG_##x pasting.

<sys/param.h> on Linux and BSD provide PASTE and XPASTE (the latter being more commonly used to ensure parameters are evaluated properly) to do this pasting in an ad hoc manner.


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds