Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
56 lines (39 sloc) 1.24 KB
* The Cheat - The legendary universal game trainer for Mac OS X.
* Copyright (c) 2003-2011, Charles McGarvey et al.
* Distributable under the terms and conditions of the 2-clause BSD
* license; see the file COPYING for the legal text of the license.
#ifndef _ChazLog_h_
#define _ChazLog_h_
#if defined(__cplusplus)
extern "C" {
#import <Cocoa/Cocoa.h>
/* Enable and disable logging to the standard console. */
void ChazLogEnable();
void ChazLogDisable();
/* Required for logging to a debug file. */
void ChazDebugSetup();
void ChazDebugCleanup();
/* Print a log message to the standard console. */
void ChazLog( NSString *format, ... );
/* Print a log message to the debug file (if available). */
void ChazDebug( NSString *format, ... );
/* Returns true if debug mode is active. */
BOOL ChazIsDebugging();
/* Returns the absolute filepath of the debug log. */
NSString *ChazDebugLogPath();
/* Makes ChazLog() equivalent to ChazDebug(). */
// call this after ChazDebugSetup()
// this will automatically enable logs
void ChazMapLogToDebug();
/* Opens the log file using the default text editor. */
void ChazOpenDebugLog();
#if defined(__cplusplus)
#endif /* _ChazLog_h_ */