Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: airc on July 19, 2015, 03:20:29 pm
-
seems C:B highlight the inactive preprocessor rather than the active one
it works in opposite manner .
in the picture , C:B highlight SDL_BIG_ENDIAN block which is false
b.t.w i am using cb 13.12 win32 version
-
where is SDL_BIG_ENDIAN defined?
As far as i know: c::b only uses the build in feature from scintilla to highlight the preprocessor and scintilla is only capable to scan the current file for defines, so if your define is in the build options or in any other file then the presented the highlighting wont work as expected...
greetings
-
SDL_BIG_ENDIAN is defined in SDL_endian.h , this file is in SDL library folder .
i added SDL include path to build-option->search directories .
you're right , if i define some thing in main.cpp the highlight works fine .