Hacker News new | ask | show | jobs
by dgrunwald 29 days ago
In our compiler (in a code analysis tool), we have

   #pragma immutable_macro __attribute__
After this pragma, any attempt to #define/#undef the macro "__attribute__" will be silently ignored. This lets us (or our customers) bypass such stupidity in library headers. It's also often useful to replace broken macros with working versions.