diff options
author | stuconnolly <stuart02@gmail.com> | 2010-03-31 01:53:03 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2010-03-31 01:53:03 +0000 |
commit | 4960324c8ec2b830ad4daf8ca313de82b2dc2b2c (patch) | |
tree | cc08aa19c2a2b06ac957f4969d266ccd0f5800f4 /Source/Sequel-Pro.pch | |
parent | 2b3d8c58bc1451bf67b28b70164017b0a1f2bf81 (diff) | |
download | sequelpro-4960324c8ec2b830ad4daf8ca313de82b2dc2b2c.tar.gz sequelpro-4960324c8ec2b830ad4daf8ca313de82b2dc2b2c.tar.bz2 sequelpro-4960324c8ec2b830ad4daf8ca313de82b2dc2b2c.zip |
Minor tidy up. Remove uneccessary import and rename pre-compiled header.
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 |