From d2c53d0fde759bf14324c5b5a9a490d57ecfa5d4 Mon Sep 17 00:00:00 2001 From: psucien Date: Sun, 28 Apr 2024 00:51:34 +0200 Subject: [PATCH] clang format fix --- src/video_core/texture_cache/texture_cache.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/video_core/texture_cache/texture_cache.cpp b/src/video_core/texture_cache/texture_cache.cpp index dd84f9f7..bf172ff8 100644 --- a/src/video_core/texture_cache/texture_cache.cpp +++ b/src/video_core/texture_cache/texture_cache.cpp @@ -12,14 +12,15 @@ #include #include -#define PROT_READ_WRITE (PROT_READ | PROT_WRITE) // There is no option to combine bitflags like this on Windows +#define PROT_READ_WRITE + (PROT_READ | PROT_WRITE) // There is no option to combine bitflags like this on Windows #else #include -#define PROT_NONE PAGE_NOACCESS +#define PROT_NONE PAGE_NOACCESS #define PROT_READ_WRITE PAGE_READWRITE -void mprotect(void *addr, size_t len, int prot) { +void mprotect(void* addr, size_t len, int prot) { DWORD old_prot{}; BOOL result = VirtualProtect(addr, len, prot, &old_prot); ASSERT_MSG(result != 0, "Region protection failed"); @@ -43,15 +44,14 @@ void GuestFaultSignalHandler(int sig, siginfo_t* info, void* raw_context) { } } #else -LONG WINAPI GuestFaultSignalHandler(EXCEPTION_POINTERS *pExp) noexcept { +LONG WINAPI GuestFaultSignalHandler(EXCEPTION_POINTERS* pExp) noexcept { const u32 ec = pExp->ExceptionRecord->ExceptionCode; if (ec == EXCEPTION_ACCESS_VIOLATION) { const auto info = pExp->ExceptionRecord->ExceptionInformation; if (info[0] == 1) { // Write violation g_texture_cache->OnCpuWrite(info[1]); return EXCEPTION_CONTINUE_EXECUTION; - } - else { + } else { UNREACHABLE(); } }