1 comment

[ 3.0 ms ] story [ 14.7 ms ] thread
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).