-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLogging.h
More file actions
28 lines (20 loc) · 697 Bytes
/
Logging.h
File metadata and controls
28 lines (20 loc) · 697 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//
// Logging.h
// VoiceCommand
//
// Created by Jay Lieske on 2008.10.02.
// Copyright 2008 YellowPages.com. All rights reserved.
//
#import <Foundation/NSObjCRuntime.h>
// Some print-debug macros. These become no-ops in Release builds.
#ifdef DEBUG
#define NSLOG(...) NSLog(__VA_ARGS__)
// Log the function name.
#define NSLOGFUN() NSLog(@"%s", __PRETTY_FUNCTION__)
// Log the function name and arguments. The format string should describe the arguments.
#define NSLOGARGS(format, ...) NSLog(@"%s (%@)", __PRETTY_FUNCTION__, [NSString stringWithFormat: format, ## __VA_ARGS__])
#else // no DEBUG
#define NSLOG(...)
#define NSLOGFUN()
#define NSLOGARGS(format, ...)
#endif // DEBUG