Hey guys, I'm new to the boards, but have been using C::B for a while now. I've gone from 10.05 to the new nightly 8081 (yes I know a newer one 8084 just came out). I have been tinkering with different features in the IDE and I absolutely love the options. One thing I've been running across was the inactive prepocessor code option. I typically leave it unchecked since I have yet to see it actually work. I have a quick program to demonstrate what I feel should work by default.
#include <iostream>
#ifdef _WIN32
int main() {
std::cout << "Hello World!";
return 0;
}
#endif
Now this program works 100% as intended, but in code blocks, there is no longer syntax highlighting. Not only can I not get an OS macro to work, but it seems the only macros I can get to work are ones I just define by myself.
#define myMacro
#if myMacro
//....
#endif
I feel this really defeats the purpose of this option as a whole since an inactive macro would technically be a macro that is invalid or just isn't used correctly. I feel there are more exceptions to this than actual uses of it. Is there a better alternative other than just leaving it unchecked? I'd eventually like something that would highlight the code that is relevant to my OS that I'm working on. I feel that would be one of the most used cases of the highlighting. Other things would include any compiler specific macros.
I know it's a lot to ask for, and I'm hoping something is in the works already, but I feel the option isn't really nessecary since I have yet to see a need for it.