improve error reporting, remove duplicate code

This commit is contained in:
Lion Kortlepel
2021-08-02 13:54:36 +02:00
parent 9666fff622
commit 1fb7cb6bc1
4 changed files with 49 additions and 89 deletions

View File

@@ -1,12 +1,15 @@
#pragma once
#include <atomic>
#include <cstring>
#include <deque>
#include <functional>
#include <memory>
#include <mutex>
#include <sstream>
#include "Compat.h"
#include "TConsole.h"
struct Version {
@@ -133,3 +136,5 @@ void RegisterThread(const std::string str);
#define Biggest 30000
std::string Comp(std::string Data);
std::string DeComp(std::string Compressed);
std::string GetPlatformAgnosticErrorString();

View File

@@ -7,6 +7,7 @@
#include <sys/socket.h>
#include <termios.h>
#include <unistd.h>
#include <errno.h>
using SOCKET = int;
using DWORD = unsigned long;
using PDWORD = unsigned long*;