Created
April 17, 2013 02:52
-
-
Save masbog/5401417 to your computer and use it in GitHub Desktop.
Objective-C Macro write log for calling function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define logC NSLog(@"%@", NSStringFromSelector(_cmd)); | |
| #define logP NSLog(@"%s", __PRETTY_FUNCTION__); | |
| //example to use | |
| - (void)applicationDidFinishLaunching:(UIApplication *)application | |
| { | |
| logC; | |
| logP; | |
| } | |
| //what heppened? you must try this at home :))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment