The dreaded #ifdef
Eric | October 25, 2012Today we conducted a little case study on OpenSSL to see how frequently people use #ifdef directives. This word cloud shows the relative distribution. There are currently 391 different flags being used in altogether 1874 #ifdef directives (not counting #ifndef etc.). The most prominent one is __cplusplus, occurring 214 times. I wonder how many people actually understand all their different side effects and combinations and how many combinations are actually being used in actual compiled products…
P.S. Thanks to Kevin Falzon for helping out with this graphic!







Hey Eric, nice work! I did something of this nature a little while ago.
Visualizing the word structure of Java class names
http://dl.acm.org/citation.cfm?id=1449814.1449857
Cheers Craig
Ah that’s quite interesting. Thanks for the link! Eric