mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-19 22:50:19 +00:00
fix formatting in all files
This commit is contained in:
@@ -101,8 +101,7 @@ public:
|
|||||||
// bytes sent on TCP
|
// bytes sent on TCP
|
||||||
std::atomic_size_t TcpSent = 0;
|
std::atomic_size_t TcpSent = 0;
|
||||||
|
|
||||||
TimeType::time_point ConnectionTime{};
|
TimeType::time_point ConnectionTime {};
|
||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void InsertVehicle(int ID, const std::string& Data);
|
void InsertVehicle(int ID, const std::string& Data);
|
||||||
|
|||||||
@@ -66,9 +66,9 @@ inline void _assert([[maybe_unused]] const char* file, [[maybe_unused]] const ch
|
|||||||
Sentry.LogAssert(#cond, _file_basename, _line, __func__); \
|
Sentry.LogAssert(#cond, _file_basename, _line, __func__); \
|
||||||
} \
|
} \
|
||||||
} while (false)
|
} while (false)
|
||||||
#define beammp_assert_not_reachable() \
|
#define beammp_assert_not_reachable() \
|
||||||
do { \
|
do { \
|
||||||
beammp_errorf("Assertion failed in '{}:{}': Unreachable code reached. This may result in a crash or undefined state of the program.", __func__, _line); \
|
beammp_errorf("Assertion failed in '{}:{}': Unreachable code reached. This may result in a crash or undefined state of the program.", __func__, _line); \
|
||||||
Sentry.LogAssert("code is unreachable", _file_basename, _line, __func__); \
|
Sentry.LogAssert("code is unreachable", _file_basename, _line, __func__); \
|
||||||
} while (false)
|
} while (false)
|
||||||
#endif // DEBUG
|
#endif // DEBUG
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "rapidjson/stringbuffer.h"
|
|
||||||
#include "rapidjson/prettywriter.h"
|
|
||||||
#include "rapidjson/document.h"
|
#include "rapidjson/document.h"
|
||||||
|
#include "rapidjson/prettywriter.h"
|
||||||
|
#include "rapidjson/stringbuffer.h"
|
||||||
#include "rapidjson/writer.h"
|
#include "rapidjson/writer.h"
|
||||||
|
|||||||
@@ -6,8 +6,8 @@
|
|||||||
* and write locks and read locks are mutually exclusive.
|
* and write locks and read locks are mutually exclusive.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <shared_mutex>
|
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
|
#include <shared_mutex>
|
||||||
|
|
||||||
// Use ReadLock(m) and WriteLock(m) to lock it.
|
// Use ReadLock(m) and WriteLock(m) to lock it.
|
||||||
using RWMutex = std::shared_mutex;
|
using RWMutex = std::shared_mutex;
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ private:
|
|||||||
{ "lua", [this](const auto& a, auto& b) { Autocomplete_Lua(a, b); } },
|
{ "lua", [this](const auto& a, auto& b) { Autocomplete_Lua(a, b); } },
|
||||||
{ "kick", [this](const auto& a, auto& b) { Autocomplete_Kick(a, b); } },
|
{ "kick", [this](const auto& a, auto& b) { Autocomplete_Kick(a, b); } },
|
||||||
{ "settings", [this](const auto& a, auto& b) { Autocomplete_Settings(a, b); } },
|
{ "settings", [this](const auto& a, auto& b) { Autocomplete_Settings(a, b); } },
|
||||||
};
|
};
|
||||||
|
|
||||||
Commandline mCommandline;
|
Commandline mCommandline;
|
||||||
std::vector<std::string> mCachedLuaHistory;
|
std::vector<std::string> mCachedLuaHistory;
|
||||||
|
|||||||
@@ -7,4 +7,3 @@ namespace uuid {
|
|||||||
std::string GenerateUuid();
|
std::string GenerateUuid();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -112,7 +112,6 @@ int BeamMPServerMain(MainArguments Arguments) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Application::SetSubsystemStatus("Main", Application::Status::Starting);
|
Application::SetSubsystemStatus("Main", Application::Status::Starting);
|
||||||
|
|
||||||
SetupSignalHandlers();
|
SetupSignalHandlers();
|
||||||
|
|||||||
Reference in New Issue
Block a user