Files
AppleWin/source/Log.h
T
tomcw 3057ddf856 Save-state: Add AppleWin version & build.
Consolidate LogGetTimeStamp() code for: log & save-state files.
2026-10-01 21:56:07 +01:00

24 lines
516 B
C++

#pragma once
#include <cstdio>
#include "StrFormat.h"
#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; // File handle for log file
std::string LogGetTimeStamp();
void LogInit();
void LogDone();
void LogOutput(const char* format, ...) ATTRIBUTE_FORMAT_PRINTF(1, 2);
void LogFileOutput(const char* format, ...) ATTRIBUTE_FORMAT_PRINTF(1, 2);