aboutsummaryrefslogtreecommitdiffstats
path: root/Source/sequel-pro_Prefix.pch
diff options
context:
space:
mode:
Diffstat (limited to 'Source/sequel-pro_Prefix.pch')
-rw-r--r--Source/sequel-pro_Prefix.pch8
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