X-Git-Url: http://git.ithinksw.org/ITFoundation.git/blobdiff_plain/6262c31ef1f3b4c4cec3e909f0ecc189eb242ab2..744612b5d258474e367710b870a5caaed7d11ab9:/ITDebug.m diff --git a/ITDebug.m b/ITDebug.m index a5666aa..578853c 100644 --- 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; }