mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-03 16:25:35 +00:00
19 lines
619 B
C++
19 lines
619 B
C++
///
|
|
/// Created by Anonymous275 on 4/2/2020.
|
|
///
|
|
#pragma once
|
|
#include <iostream>
|
|
#include <mutex>
|
|
#include <string>
|
|
extern std::mutex MLock;
|
|
void InitLog();
|
|
#define DebugPrintTID() DebugPrintTIDInternal(__func__)
|
|
void DebugPrintTIDInternal(const std::string& func); // prints the current thread id in debug mode, to make tracing of crashes and asserts easier
|
|
void ConsoleOut(const std::string& msg);
|
|
void QueueAbort();
|
|
void except(const std::string& toPrint);
|
|
void debug(const std::string& toPrint);
|
|
void error(const std::string& toPrint);
|
|
void info(const std::string& toPrint);
|
|
void warn(const std::string& toPrint);
|