Hacker News new | ask | show | jobs
by pvitz 1330 days ago
While reading the code I stumbled upon "case 1 ... 10:” or similar and asked myself how I could have missed this range feature for so many years. It turns out that this is a GCC extension and indeed not part of the language. A list of the C extensions (and C++ extensions) can be found here: https://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/C-Extensions.ht...
1 comments

That's true, I should have mentioned that I use this extension. It is supported by clang as well, however.