Permalink
Browse files

DLOG and more ignores

  • Loading branch information...
1 parent 7f3b031 commit 3a1f79bed83a9141ad91178628e969954bb1d0ba @burtlo committed Nov 13, 2011
Showing with 15 additions and 1 deletion.
  1. +2 −1 .gitignore
  2. +13 −0 Gravy/Gravy-Prefix.pch
View
@@ -1,2 +1,3 @@
build
-Gravy.xcodeproj/project.xcworkspace/
+Gravy.xcodeproj/project.xcworkspace/
+Gravy.xcodeproj/xcuserdata/
View
@@ -5,3 +5,16 @@
#ifdef __OBJC__
#import <Cocoa/Cocoa.h>
#endif
+
+#ifdef DEBUG
+
+#define DLOG(fmt, ...) NSLog(@"[%@ %@] %@", \
+NSStringFromClass([self class]), \
+NSStringFromSelector(_cmd), \
+[NSString stringWithFormat:fmt, ## __VA_ARGS__]);
+
+#else
+
+#define DLOG(...)
+
+#endif

0 comments on commit 3a1f79b

Please sign in to comment.