aboutsummaryrefslogtreecommitdiff
path: root/Foundation/GTMLogger.h
diff options
context:
space:
mode:
authorGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2012-02-28 18:30:10 +0000
committerGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2012-02-28 18:30:10 +0000
commit42aa8a25e4cfa118afdddf7f62aa0c731f88baff (patch)
treec32eab786347070b350a97b925538a4e733c6819 /Foundation/GTMLogger.h
parentba4b222bea6694d654ab6b89bcd452dd5a67e42f (diff)
[Author: thomasvl]
Allow the GTMLogger macros to be remapped in a prefix by checking if they are defined before defining them. R=dmaclach DELTA=5 (5 added, 0 deleted, 0 changed)
Diffstat (limited to 'Foundation/GTMLogger.h')
-rw-r--r--Foundation/GTMLogger.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Foundation/GTMLogger.h b/Foundation/GTMLogger.h
index 43ae848..49cb899 100644
--- a/Foundation/GTMLogger.h
+++ b/Foundation/GTMLogger.h
@@ -318,6 +318,9 @@
@end // GTMLoggerMacroHelpers
+// The convenience macros are only defined if they haven't already been defined.
+#ifndef GTMLoggerInfo
+
// Convenience macros that log to the shared GTMLogger instance. These macros
// are how users should typically log to GTMLogger. Notice that GTMLoggerDebug()
// calls will be compiled out of non-Debug builds.
@@ -337,6 +340,8 @@
#define GTMLoggerDebug(...) do {} while(0)
#endif
+#endif // !defined(GTMLoggerInfo)
+
// Log levels.
typedef enum {
kGTMLoggerLevelUnknown,