Format all C++ and Java code via clang-format

Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
Konstantin Pastbin
2025-08-17 14:32:37 +07:00
parent 9f0290c0ec
commit bfffa1fff4
2169 changed files with 56441 additions and 64188 deletions

View File

@@ -2,8 +2,8 @@
#include "platform/platform.hpp"
#include <future>
#include <functional>
#include <future>
#include <utility>
namespace platform
@@ -14,22 +14,17 @@ class SafeCallback;
// Calls callback on main thread, all params are copied.
// If not initialized nothing will be done.
// *NOTE* The class is not thread-safe.
template <typename R, typename ...Args>
template <typename R, typename... Args>
class SafeCallback<R(Args...)>
{
public:
SafeCallback() = default;
template <typename Fn>
SafeCallback(Fn const & fn)
: m_fn(fn)
{
}
SafeCallback(Fn const & fn) : m_fn(fn)
{}
operator bool() const noexcept
{
return static_cast<bool>(m_fn);
}
operator bool() const noexcept { return static_cast<bool>(m_fn); }
void operator()(Args... args) const
{