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

You are upset about comment formatting, but find this easier to appreciate?

  ...
  #define __is_constant(x) \
      (sizeof(int) == sizeof(*(1 ? ((void*)((long)(x) * 0l)) : (int*)1)))
  ...
How many C programmers would even understand what that code does, without an explanation?


And it is not even standard C, but uses GCC extensions.




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

Search: