mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-11-15 09:05:39 +00:00
23 lines
566 B
C
23 lines
566 B
C
#pragma once
|
|
|
|
#ifndef _VC71 // __VA_ARGS__ not supported on MSVC++ .NET 7.x
|
|
#ifdef _DEBUG
|
|
#define LOG(format, ...) LogOutput(format, __VA_ARGS__)
|
|
#else
|
|
#define LOG(...)
|
|
#endif
|
|
#endif
|
|
|
|
extern FILE* g_fh; // Filehandle for log file
|
|
|
|
void LogInit(void);
|
|
void LogDone(void);
|
|
|
|
#ifdef _MSC_VER
|
|
void LogOutput(LPCTSTR format, ...);
|
|
void LogFileOutput(LPCTSTR format, ...);
|
|
#else
|
|
void LogOutput(LPCTSTR format, ...) __attribute__ ((format (printf, 1, 2)));
|
|
void LogFileOutput(LPCTSTR format, ...) __attribute__ ((format (printf, 1, 2)));
|
|
#endif
|