Implement Assertion properly, TID printing in debug builds

This commit is contained in:
Lion Kortlepel
2020-11-03 10:13:52 +01:00
parent 69f20bdf41
commit 2ec65d5b84
12 changed files with 62 additions and 12 deletions

View File

@@ -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();