2007-03-23 22:26:35 +00:00
|
|
|
#pragma once
|
|
|
|
|
2022-02-13 21:37:05 +00:00
|
|
|
#include <cstdio>
|
|
|
|
|
|
|
|
#include "StrFormat.h"
|
|
|
|
|
2007-04-04 21:28:10 +00:00
|
|
|
#ifndef _VC71 // __VA_ARGS__ not supported on MSVC++ .NET 7.x
|
|
|
|
#ifdef _DEBUG
|
|
|
|
#define LOG(format, ...) LogOutput(format, __VA_ARGS__)
|
|
|
|
#else
|
|
|
|
#define LOG(...)
|
|
|
|
#endif
|
2007-03-23 22:26:35 +00:00
|
|
|
#endif
|
|
|
|
|
2022-02-13 21:37:05 +00:00
|
|
|
extern FILE* g_fh; // File handle for log file
|
2018-04-08 16:37:26 +00:00
|
|
|
|
2018-07-15 14:38:37 +00:00
|
|
|
void LogInit(void);
|
|
|
|
void LogDone(void);
|
2021-10-18 19:23:46 +00:00
|
|
|
|
2022-02-13 21:37:05 +00:00
|
|
|
void LogOutput(const char* format, ...) ATTRIBUTE_FORMAT_PRINTF(1, 2);
|
|
|
|
void LogFileOutput(const char* format, ...) ATTRIBUTE_FORMAT_PRINTF(1, 2);
|