28 lines
350 B
C
28 lines
350 B
C
#ifndef _DEBUG_H_
|
|
#define _DEBUG_H_
|
|
|
|
#ifdef __MACOSX__
|
|
#if DEBUG
|
|
#define DebugPrint printf
|
|
#else
|
|
#define DebugPrint
|
|
#endif
|
|
#else
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
int DebugPrint( const char * fmt, ... );
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#ifndef TRACE
|
|
#define TRACE DebugPrint
|
|
#endif
|
|
|
|
#endif //_DEBUG_H_
|