Evil C

05Jun08

Just letting you know about evil C programming language constructs. My favourite one (involving preprocessor-abuse, of course!):

  /* Test whether compiler supports C++-style comments */
  #define HELPER 0//**/
  #define CPLUSPLUS_COMMENTS_SUPPORTED (HELPER+1)

More posts to come… someday! I am pretty busy lately :-(



No Responses Yet to “Evil C”  

  1. No Comments Yet

Leave a Reply