According to some residents of this resource, I installed a look at Code::Block .
I don’t understand how to deal with backlighting between ifdef ? Accordingly, there is a gray text, no matter what is announced and what is not .. it is extremely inconvenient.
An example on which such a picture:
libbuild.h :
#if ( \ defined(_WIN32) || defined(__WIN32__) || defined(_Windows) || \ defined(_WIN64) || defined(__WIN64__) || \ defined(__CYGWIN__) || defined(__MINGW32__) || defined(__MINGW64__)) # define OS_WIN 1 #endif test.c
#include "libbuild.h" #if defined(OS_WIN) static int aaa(int i) { return (i + 1); } #else static long aaa(long i) { return (i + 1); } #endif while always highlighted code long aaa(..) . Naturally, everything is going right, but it is difficult to look. Assembly with this takes place under WIN32 .
here's what it looks like:
There is a solution?



CodeBlocks. Everything is fine displays. You haveOS_WINdeclared when building on windows, so there will always be only one option highlighted (if at least one of the macros in the condition is declared). Under Linux, another one will be highlighted. For the sake of experiment, try to comment out#define OS_WIN 1, will the branch change? - Croessmah