Mr. Boy
Mr. Boy

Reputation: 63710

How to tell if a C++ symbol is #defined in Xcode

I'm used to Visual C++ which makes it very clear in an #ifdef block if the block is going to be compiled or not.

Does Xcode (3) do this too, I couldn't see how?

Upvotes: 3

Views: 288

Answers (1)

sch
sch

Reputation: 27506

Have a look at the following screenshot.

enter image description here

As you can see, Xcode 4 does not apply syntax coloring in the parts that will not be compiled.

Upvotes: 3

Related Questions