Updating ITFoundation to include updates spurred by Haven development.
[ITFoundation.git] / ITDebug.m
index a5666aa..578853c 100644 (file)
--- a/ITDebug.m
+++ b/ITDebug.m
@@ -1,7 +1,15 @@
 #import "ITDebug.h"
 
+NSString *ITDebugErrorPrefixForObject(id object) {
+       return [NSString stringWithFormat:@"[ERROR] %@(0x%x):", NSStringFromClass([object class]), object];
+}
+
 static BOOL _ITDebugMode = NO;
 
+BOOL ITDebugMode() {
+       return _ITDebugMode;
+}
+
 void SetITDebugMode(BOOL mode) {
        _ITDebugMode = mode;
 }