Skip to content

Comment on Adventures in Obscure C Features

Comments

I have used pretty much the same trick of multiple inclusion to create an extensible options mechanism. That is pretty much the only thing I will use the C preprocessor for anymore, where stringification or token pasting is needed (like defining enums in string form or code form).

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.