Hacker News new | past | comments | ask | show | jobs | submit login

I'm surprised that it isn't normal to provide a pragma for that. Something like this:

  #pragma push intsizes 1 2 2 4 0
  #include <yimage.h> // old 16-bit header
  #pragma pop

  #pragma push intsizes 1 2 4 8 16
  #include <servertypes.h> // uses 128-bit long long
  #pragma pop



That makes it completely impossible while reading code to tell what the size of int is even on your system. And worsens header file include order problems.




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

Search: