25#include "common/debug.h"
26#include "common/textconsole.h"
28#define HPL1_UNIMPLEMENTED(fnName) error("call to unimplemented function " #fnName)
34 kDebugResourceLoading,
47 kDebugLevelWarning = 2,
51template<
typename... Args>
52void logError(uint32 channels,
const char *fmt, Args... args) {
53 debugCN(kDebugLevelError, channels, fmt, args...);
56template<
typename... Args>
57void logWarning(uint32 channels,
const char *fmt, Args... args) {
58 debugCN(kDebugLevelWarning, channels, fmt, args...);
61template<
typename... Args>
62void logInfo(uint32 channels,
const char *fmt, Args... args) {
63 debugCN(kDebugLevelLog, channels, fmt, args...);
void void void void void void debugCN(int level, uint32 debugChannel, MSVC_PRINTF const char *s,...) GCC_PRINTF(3