diff options
Diffstat (limited to 'Source/Sequel-Pro.pch')
-rw-r--r-- | Source/Sequel-Pro.pch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Source/Sequel-Pro.pch b/Source/Sequel-Pro.pch new file mode 100644 index 00000000..07fdf502 --- /dev/null +++ b/Source/Sequel-Pro.pch @@ -0,0 +1,23 @@ +// +// Prefix header for all source files of the 'sequel-pro' target in the 'sequel-pro' project. +// + +#ifdef __OBJC__ + #import <Cocoa/Cocoa.h> +#endif + +#ifdef DEBUG + #define DLog(...) NSLog(__VA_ARGS__) +#else + #define DLog(...) +#endif + +#define ALog(...) NSLog(__VA_ARGS__) + +#ifndef enumerate +#define enumerate(container,var) for(NSEnumerator* _enumerator = [container objectEnumerator]; var = [_enumerator nextObject]; ) +#endif + +#ifndef sizeofA +#define sizeofA(a) (sizeof(a)/sizeof(a[0])) +#endif |