Adding ITDebug.h to the framework header.
[ITFoundation.git] / ITDebug.m
1 /*
2  *  ITDebug.m
3  *  ITFoundation
4  *
5  *  Created by Joseph Spiros on Fri Sep 12 2003.
6  *  Copyright (c) 2003 __MyCompanyName__. All rights reserved.
7  *
8  */
9
10 #import "ITDebug.h"
11
12 static BOOL _ITDebugMode = NO;
13
14 void SetITDebugMode (BOOL mode)
15 {
16     _ITDebugMode = mode;
17 }
18
19 void ITDebugLog (NSString *format, ...)
20 {
21     if ( ( _ITDebugMode == YES ) ) {
22         va_list ap;
23     
24         va_start (ap, format);
25         NSLogv (format, ap);
26         va_end (ap);
27     }
28 }