Last active
December 27, 2015 13:19
-
-
Save kyle-go/7332390 to your computer and use it in GitHub Desktop.
macro.h
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
| // | |
| // macro.h | |
| // | |
| // create by kyle. 2013.11 | |
| // https://gist.github.com/kylescript/7332390 | |
| #ifdef DEBUG | |
| #define debugLog(...) NSLog(__VA_ARGS__) | |
| #define debugMethod() NSLog(@"%s", __func__) | |
| #else | |
| #define debugLog(...) | |
| #define debugMethod() | |
| #endif | |
| #define STR(key) NSLocalizedString(key, nil) | |
| #define PATH_OF_APP_HOME NSHomeDirectory() | |
| #define PATH_OF_TEMP NSTemporaryDirectory() | |
| #define PATH_OF_DOCUMENT [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment