Unterminated conditional directive in Xcode
-
16-04-2021 - |
Pregunta
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?
Solución
An #ifdef
, like an #if
, needs to be balanced by an #endif
. In this case, that would probably go immediately after your #define
line.
Otros consejos
Something like this:
#ifdef DEBUG
NSLog (@"This is a test");
#endif
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow