News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

inactive preprocessor

Started by airc, July 19, 2015, 03:20:29 PM

Previous topic - Next topic

airc

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

BlueHazzard

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

airc

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 .