Author Topic: inactive preprocessor  (Read 3192 times)

Offline airc

  • Multiple posting newcomer
  • *
  • Posts: 37
inactive preprocessor
« 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

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: inactive preprocessor
« Reply #1 on: July 19, 2015, 06:48:46 pm »
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

Offline airc

  • Multiple posting newcomer
  • *
  • Posts: 37
Re: inactive preprocessor
« Reply #2 on: July 19, 2015, 11:28:05 pm »
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 .