]>
Dogcows Code - chaz/thecheat/blob - ChazLog.h
bcbc42c8d2a926f689d8b794cd4d0ae4bbbb2b88
2 // **********************************************************************
3 // The Cheat - A universal game cheater for Mac OS X
4 // (C) 2003-2005 Chaz McGarvey (BrokenZipper)
6 // This program is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 1, or (at your option)
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the Free Software
18 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
25 #if defined(__cplusplus)
29 #import <Cocoa/Cocoa.h>
32 /* Enable and disable logging to the standard console. */
34 void ChazLogDisable();
36 /* Required for logging to a debug file. */
37 void ChazDebugSetup();
38 void ChazDebugCleanup();
40 /* Print a log message to the standard console. */
41 void ChazLog( NSString
*format
, ... );
42 /* Print a log message to the debug file (if available). */
43 void ChazDebug( NSString
*format
, ... );
45 /* Returns true if debug mode is active. */
46 BOOL
ChazIsDebugging();
47 /* Returns the absolute filepath of the debug log. */
48 NSString
*ChazDebugLogPath();
50 /* Makes ChazLog() equivalent to ChazDebug(). */
51 // call this after ChazDebugSetup()
52 // this will automatically enable logs
53 void ChazMapLogToDebug();
55 /* Opens the log file using the default text editor. */
56 void ChazOpenDebugLog();
59 #if defined(__cplusplus)
64 #endif /* _ChazLog_h_ */
This page took 0.03635 seconds and 4 git commands to generate.