In my application I have to redefine a macro. I did like this.
-(void)viewDidLoad{
#undef kMacro
#define kMacro @"New Value"
}
It is working fine within this function. When I put NSLog
inside this function, I get "New Value". But however I can't get this new value outside this function or in other classes. (I am getting the Old Value). Is it possible to redefine a macro as global?