Code::Blocks Forums
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
As usual while waiting for the next release - don't forget to check the
nightly builds
in the forum.
Home
Help
Search
Login
Register
Code::Blocks Forums
»
User forums
»
Using Code::Blocks
»
inactive preprocessor
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: inactive preprocessor (Read 4039 times)
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
Logged
BlueHazzard
Developer
Lives here!
Posts: 3352
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
Logged
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 .
Logged
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
Code::Blocks Forums
»
User forums
»
Using Code::Blocks
»
inactive preprocessor