Macro compiler error
问题 I tried making a quick macro for creating and showing a simple "ok" dialog box in iOS: #define ALERT_DIALOG(title,message) \ do\ {\ UIAlertView *alert_Dialog = [[UIAlertView alloc] initWithTitle:(title) message:(message) delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];\ [alert_Dialog show];\ } while ( 0 ) If I try to use it in my code: ALERT_DIALOG(@"Warning", @"Message"); I get the error: Parse Issue. Expected']' And the error seems to be pointing at the second @ right before