3

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?

4
  • What have you tried so far? This SO question might help you a bit... Commented Apr 28, 2012 at 15:35
  • 1
    @AlexanderPavlov: I think the OP is talking about the greying out that VS does for blocks that aren't currently applicable, not how to define symbols. Commented Apr 28, 2012 at 15:40
  • @minitech Oh I see, thanks, now that makes more sense to me. Commented Apr 28, 2012 at 15:42
  • @minitech correct. Ideally not just visually but by hovering over and it telling me the value or something like that. Commented Apr 28, 2012 at 19:07

1 Answer 1

3

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.

Sign up to request clarification or add additional context in comments.

1 Comment

True but if your code doesn't have syntax coloring, it doesn't help... a function call with parameters and no literals or datatypes mentioned. However if I'm unsure, I suppose I can add a dummy line of code like int x = 123; and see what happens!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.