I agree with @codebrainz's point. The fully reliable mechanism would require 
implicit knowledge of the toolchain. Besides compiler's predefined macros (e.g. 
https://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html), there are 
language macros, which values can vary depending upon which language standard 
is selected (e.g. C90/C99/C11) and I think this is outside of scope of 
lighweight IDE.

I am not sure if it is worth to handle `#if 0` case alone or maybe narrow 
`#ifdef`s just to single translation unit, as already pointes by @elextr such 
partially working feature may be misleading and at the end do more harm than it 
is worth.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1047#issuecomment-222930212

Reply via email to