Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Nice.

Another neat comment-based construct is the good old:

  //*
     foo
  /*/
     bar
  //*/
It yields 'foo' as is, and 'bar' if the first slash is removed.




It's not as needed in C given that you can use #if 1

It is handy in C derivatives, though.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: