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
#if defined(__cplusplus) | |
#define let auto const | |
#else | |
#define let const __auto_type | |
#endif | |
#if defined(__cplusplus) | |
#define var auto | |
#else | |
#define var __auto_type |
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 PRINT_CALLER(cmd, arg) ({ \ | |
NSString *sourceString = [[NSThread callStackSymbols] objectAtIndex:1]; \ | |
NSCharacterSet *separatorSet = [NSCharacterSet characterSetWithCharactersInString:@" -[]+?.,"]; \ | |
NSMutableArray *array = [NSMutableArray arrayWithArray:[sourceString componentsSeparatedByCharactersInSet:separatorSet]]; \ | |
[array removeObject:@""]; \ | |
NSString *value = arg == nil ? @"nil" : [NSString stringWithFormat:@"%@", (arg)]; \ | |
NSLog(@"Caller of '%@' is '[%@ %@]', with argument: '%@'", NSStringFromSelector(cmd), [array objectAtIndex:3], [array objectAtIndex:4], value); \ | |
}) | |
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 RETAIN_COUNT(object) (long)CFGetRetainCount((__bridge CFTypeRef)object); |
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
#!/bin/bash | |
if ! [ -x "$(command -v gdate)" ]; then | |
echo 'Error: git is not installed. Run "brew install coreutils"' >&2 | |
exit 1 | |
fi | |
if ! [ -x "$(command -v gh)" ]; then | |
echo 'Error: git is not installed. Run "brew install gh"' >&2 | |
exit 1 |
OlderNewer