mirror of
https://github.com/rehlds/metamod-r.git
synced 2025-02-10 21:58:47 +03:00
28 lines
725 B
C++
28 lines
725 B
C++
#pragma once
|
|
|
|
enum
|
|
{
|
|
MAX_LOGMSG_LEN = 1024, // max buffer size for printed messages
|
|
MAX_CLIENTMSG_LEN = 128 // max buffer size for client messages
|
|
};
|
|
|
|
extern cvar_t g_meta_debug;
|
|
|
|
template <typename ...t_args>
|
|
void META_DEBUG(int level, const char* fmt, t_args ... args)
|
|
{
|
|
if (unlikely(g_meta_debug.value >= level))
|
|
META_DEBUG_(level, fmt, args...);
|
|
}
|
|
|
|
void META_CONS(const char* fmt, ...);
|
|
void META_DEV(const char* fmt, ...);
|
|
void META_INFO(const char* fmt, ...);
|
|
void META_WARNING(const char* fmt, ...);
|
|
void META_ERROR(const char* fmt, ...);
|
|
void META_LOG(const char* fmt, ...);
|
|
void META_DEBUG_(int level, const char* fmt, ...);
|
|
void META_CLIENT(edict_t* pEntity, const char* fmt, ...);
|
|
|
|
void flush_ALERT_buffer();
|