Hi,
i simply want to override the NSLog function when I generate the RELEASE version of an iPhone app.
so it should look like this :
#if DEBUG
#define MyLog (x) NSLog(x)
#else
#define MyLog (x) ;
#endif
but it does not work, seems you cannot use parameters in preprocessor macros like you can do in c/c++ ?
If you have annother more effective solution to override NSLog, that would help me, too.
thank you in advance.
i simply want to override the NSLog function when I generate the RELEASE version of an iPhone app.
so it should look like this :
#if DEBUG
#define MyLog (x) NSLog(x)
#else
#define MyLog (x) ;
#endif
but it does not work, seems you cannot use parameters in preprocessor macros like you can do in c/c++ ?
If you have annother more effective solution to override NSLog, that would help me, too.
thank you in advance.