This file contains 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
#ifndef ERROR_LOG | |
#ifdef DEBUG | |
#define ERROR_LOG(error) if(error){NSLog(@"%s Error: %@", __PRETTY_FUNCTION__, error);} | |
#else | |
#define ERROR_LOG(error) | |
#endif | |
#endif |
This file contains 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
#ifndef DEBUG_LOG | |
#ifdef DEBUG | |
#define DEBUG_LOG(fmt, ...) NSLog(fmt, ##__VA_ARGS__) | |
#else | |
#define DEBUG_LOG(fmt, ...) | |
#endif | |
#endif |
This file contains 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
extension Array { | |
mutating func pop() -> T? { | |
return self.removeAtIndex(0) | |
} | |
mutating func push(element: T) { | |
self.append(element) | |
} | |
} |
NewerOlder