Permalink
Browse files

Removed the DLog override for non-debug environments

  • Loading branch information...
1 parent 9312d0b commit 10f80e127ffcf61316a2346ac2f9fe5304498b11 Michael Fey committed Sep 28, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 SharedCode/ZSyncShared.h
View
3 SharedCode/ZSyncShared.h
@@ -2,7 +2,8 @@
#define DLog(...) NSLog(@"%s(%x) %@", __PRETTY_FUNCTION__, self, [NSString stringWithFormat:__VA_ARGS__])
#define ALog(...) [[NSAssertionHandler currentHandler] handleFailureInFunction:[NSString stringWithCString:__PRETTY_FUNCTION__ encoding:NSUTF8StringEncoding] file:[NSString stringWithCString:__FILE__ encoding:NSUTF8StringEncoding] lineNumber:__LINE__ description:__VA_ARGS__]
#else
- #define DLog(...) NSLog(@"%s(%x) %@", __PRETTY_FUNCTION__, self, [NSString stringWithFormat:__VA_ARGS__])
+// #define DLog(...) NSLog(@"%s(%x) %@", __PRETTY_FUNCTION__, self, [NSString stringWithFormat:__VA_ARGS__])
+ #define DLog(...) do {} while(0)
#ifndef NS_BLOCK_ASSERTIONS
#define NS_BLOCK_ASSERTIONS
#endif

0 comments on commit 10f80e1

Please sign in to comment.