aboutsummaryrefslogtreecommitdiff
path: root/Foundation/GTMLogger.h
diff options
context:
space:
mode:
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,