I am trying to understand a C++ OpenGL project (github/XCSoar) using VSCode on a Debian Linux box (don't think that is significant, but...). I have noticed that the 'active/inactive' code block highlighting is wrong sometimes, and it really screws up my understanding of what is going on.
Here is a screenshot of a section of code where the program has halted in debug mode, in the middle of a code block that has been marked as 'inactive' (I edited the C++ Extensions setting to make the 'inactive code block' designation obvious).

Any idea why this is happening? The 'ENABLE_OPENGL' symbol isn't defined or declared, at least according to VSCode, but the program is certainly an OPENGL app, and stepping through the code definitely steps through the 'inactive' block.
TIA,
Frank
Источник: https://stackoverflow.com/questions/781 ... gl-project
Мобильная версия