mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 06:26:49 +00:00
format all source code with clang-format
This commit is contained in:
parent
6bbaf18e71
commit
42cb5d7977
1234 changed files with 90082 additions and 82954 deletions
|
|
@ -110,9 +110,9 @@ enum class ErrorCode : int {
|
|||
};
|
||||
} // namespace orbis
|
||||
|
||||
#define ORBIS_RET_ON_ERROR(...) \
|
||||
do { \
|
||||
if (auto errc___ = (__VA_ARGS__); errc___ != ::orbis::ErrorCode{}) { \
|
||||
return errc___; \
|
||||
} \
|
||||
#define ORBIS_RET_ON_ERROR(...) \
|
||||
do { \
|
||||
if (auto errc___ = (__VA_ARGS__); errc___ != ::orbis::ErrorCode{}) { \
|
||||
return errc___; \
|
||||
} \
|
||||
} while (false)
|
||||
|
|
|
|||
|
|
@ -65,8 +65,8 @@ struct ProcessOps {
|
|||
uint64_t arg3);
|
||||
SysResult (*dynlib_unload_prx)(Thread *thread, ModuleHandle handle);
|
||||
|
||||
SysResult (*thr_create)(Thread *thread, ptr<UContext> ctxt,
|
||||
ptr<slong> arg, sint flags);
|
||||
SysResult (*thr_create)(Thread *thread, ptr<UContext> ctxt, ptr<slong> arg,
|
||||
sint flags);
|
||||
SysResult (*thr_new)(Thread *thread, ptr<thr_param> param, sint param_size);
|
||||
SysResult (*thr_exit)(Thread *thread, ptr<slong> state);
|
||||
SysResult (*thr_kill)(Thread *thread, slong id, sint sig);
|
||||
|
|
|
|||
|
|
@ -83,7 +83,6 @@ struct UContext {
|
|||
|
||||
static_assert(sizeof(UContext) == 0x500);
|
||||
|
||||
|
||||
enum Signal {
|
||||
kSigHup = 1,
|
||||
kSigInt = 2,
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "orbis-config.hpp"
|
||||
#include "error/ErrorCode.hpp"
|
||||
#include "orbis-config.hpp"
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <cstring>
|
||||
|
|
@ -49,8 +49,7 @@ struct Uio {
|
|||
return {};
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
ErrorCode write(const T &object) {
|
||||
template <typename T> ErrorCode write(const T &object) {
|
||||
return write(&object, sizeof(T));
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -54,7 +54,6 @@ inline constexpr auto kUmtxOpNwakePrivate = 21;
|
|||
inline constexpr auto kUmtxOpMutexWake2 = 22;
|
||||
inline constexpr auto kUmtxOpMutexWake3 = 23;
|
||||
|
||||
|
||||
inline constexpr auto kSemNamed = 2;
|
||||
|
||||
struct umtx {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue