17

What's wrong here:

#define CONTROLS_OFFSET 100
#ifdef  CONTROLS_OFFSET//Unterminated conditional directive it says
#define FIND_MAIN_MENU 3

Why do i get this error?

2 Answers 2

59

An #ifdef, like an #if, needs to be balanced by an #endif. In this case, that would probably go immediately after your #define line.

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

Comments

4

Something like this:

#ifdef DEBUG
  NSLog (@"This is a test");
#endif

Comments

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.