X-Git-Url: http://git.ithinksw.org/ITFoundation.git/blobdiff_plain/692faf9cb79903190c1885a7ed08a2c97cc7fb8b..refs/heads/master:/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; }