Commit c58ebdcb authored by Felix Paul Kühne's avatar Felix Paul Kühne

AspenProject: introduce the APLog makro so we don't spam release builds with debug messages

parent 73ceb365
...@@ -12,3 +12,9 @@ ...@@ -12,3 +12,9 @@
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
#endif #endif
#ifndef NDEBUG
#define APLog(format, ...) NSLog(format, ## __VA_ARGS__)
#else
#define APLog(format, ...)
#endif
\ No newline at end of file
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{ {
NSLog(@"found %u media", _foundMedia.count); APLog(@"found %u media", _foundMedia.count);
return _foundMedia.count; return _foundMedia.count;
} }
...@@ -97,10 +97,9 @@ ...@@ -97,10 +97,9 @@
} }
} }
MLFile *object = _foundMedia[indexPath.row]; MLFile *object = _foundMedia[indexPath.row];
cell.textLabel.text = object.title; cell.textLabel.text = object.title;
NSLog(@"returning cell with title %@", object.title); APLog(@"returning cell with title %@", object.title);
return cell; return cell;
} }
...@@ -153,7 +152,7 @@ ...@@ -153,7 +152,7 @@
#pragma mark - UI implementation #pragma mark - UI implementation
- (void)showAboutView:(id)sender - (void)showAboutView:(id)sender
{ {
NSLog(@"asked to show the about view"); APLog(@"asked to show the about view");
} }
@end @end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment