mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-03 14:26:09 +00:00
Implement Assertion properly, TID printing in debug builds
This commit is contained in:
@@ -1,17 +1,22 @@
|
||||
#include "Startup.h"
|
||||
#include "Assert.h"
|
||||
#include <thread>
|
||||
#include <iostream>
|
||||
[[noreturn]] void loop(){
|
||||
DebugPrintTID("test loop");
|
||||
while(true){
|
||||
std::cout.flush();
|
||||
Assert(false);
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(600));
|
||||
}
|
||||
}
|
||||
int main(int argc, char* argv[]) {
|
||||
DebugPrintTID("main");
|
||||
#ifdef DEBUG
|
||||
std::thread t1(loop);
|
||||
t1.detach();
|
||||
#endif
|
||||
Assert(false);
|
||||
ConsoleInit();
|
||||
InitServer(argc,argv);
|
||||
InitConfig();
|
||||
|
||||
Reference in New Issue
Block a user