Hario no kai (はりおの階)

Evil C

Posted by: hario on: June 5, 2008

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 :-(

Tags: ,

Leave a Reply

¡Camarero! ¡Una de arroz con té!
Ingenieros de Zanussi desde 1983.

Archives

Bookmarks