diff options
author | Bibiko <bibiko@eva.mpg.de> | 2009-06-06 17:52:08 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2009-06-06 17:52:08 +0000 |
commit | 2f5c4b9bab18b54f2d37f4b4a05afa116cfd0c44 (patch) | |
tree | 63709f4a8da66c65bbb4682e92d8e0027f7aa344 /Source/sequel-pro_Prefix.pch | |
parent | aaebe1f173659b1d0b3406e6722491d70c6a76e6 (diff) | |
download | sequelpro-2f5c4b9bab18b54f2d37f4b4a05afa116cfd0c44.tar.gz sequelpro-2f5c4b9bab18b54f2d37f4b4a05afa116cfd0c44.tar.bz2 sequelpro-2f5c4b9bab18b54f2d37f4b4a05afa116cfd0c44.zip |
• moved macros enumerate() and sizeOf() to sequel-pro_Prefix.pch
• added to SPArrayAdditions.m - (NSArray *)subarrayWithIndexes:(NSIndexSet *)indexes
• added "Copy as SQL INSERT" to MainMenu (not yet activated)
• added to CMCopyTable - (NSString *)selectedRowsAsSqlInserts for copying selectedRows as INSERT INTO ... string (under constructions, up to now it works for strings)
Diffstat (limited to 'Source/sequel-pro_Prefix.pch')
-rw-r--r-- | Source/sequel-pro_Prefix.pch | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/sequel-pro_Prefix.pch b/Source/sequel-pro_Prefix.pch index 864e88ea..75f66099 100644 --- a/Source/sequel-pro_Prefix.pch +++ b/Source/sequel-pro_Prefix.pch @@ -13,3 +13,11 @@ #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 |