Hacker News new | past | comments | ask | show | jobs | submit login
Linus Torvalds' Latest C Hacker Challenge on Google Plus (plus.google.com)
14 points by espeed on April 12, 2012 | hide | past | favorite | 1 comment



The commentary about the new G+ layout is tiring. Thankfully, real conversation starts shortly after.

tl;dr: most elegant solution is by "comex":

    #define is_set(macro) is_set_(macro)
    #define macrotest_1 ,
    #define is_set_(value) is_set__(macrotest_##value)
    #define is_set__(comma) is_set___(comma 1, 0)
    #define is_set___(_, v, ...) v




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: