Skip to content
This repository has been archived by the owner on Oct 9, 2018. It is now read-only.

Commit

Permalink
Merge pull request #8 from moleksyuk/master
Browse files Browse the repository at this point in the history
Fix CocoaLumberjack definition
  • Loading branch information
Adar Porat committed Mar 22, 2013
2 parents cd9f35f + fd06cba commit ff9a04a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/iTellAFriend.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,6 @@
#import <MessageUI/MessageUI.h>
#import <StoreKit/StoreKit.h>

#ifdef DEBUG
// First, check if we can use Cocoalumberjack for logging
#ifdef LOG_VERBOSE
extern int ddLogLevel;
#define ITELLLog(...) DDLogVerbose(__VA_ARGS__)
#else
#define ITELLLog(...) NSLog(@"%s(%p) %@", __PRETTY_FUNCTION__, self, [NSString stringWithFormat:__VA_ARGS__])
#endif
#else
#define ITELLLog(...) ((void)0)
#endif

@interface iTellAFriend : NSObject <MFMailComposeViewControllerDelegate, SKStoreProductViewControllerDelegate, UIAlertViewDelegate> {
NSString *appStoreCountry;
NSString *applicationName;
Expand Down
12 changes: 12 additions & 0 deletions src/iTellAFriend.m
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,18 @@
#error This class requires automatic reference counting
#endif

#ifdef DEBUG
// First, check if we can use Cocoalumberjack for logging
#ifdef LOG_VERBOSE
extern int ddLogLevel;
#define ITELLLog(...) DDLogVerbose(__VA_ARGS__)
#else
#define ITELLLog(...) NSLog(@"%s(%p) %@", __PRETTY_FUNCTION__, self, [NSString stringWithFormat:__VA_ARGS__])
#endif
#else
#define ITELLLog(...) ((void)0)
#endif

static iTellAFriend *sharedInstance = nil;

static NSString *const iTellAFriendAppIdKey = @"iTellAFriendAppIdKey";
Expand Down

0 comments on commit ff9a04a

Please sign in to comment.