diff options
author | Chris Robinson <[email protected]> | 2022-12-05 21:50:55 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-12-05 21:50:55 -0800 |
commit | c55d6d8c345223c062dfdbd747fb13a8fd44aad5 (patch) | |
tree | 5d9b8343eb03f495904de14e57d61611a94e38b5 /alc/alc.cpp | |
parent | 4de5c7dfeebc2335ad3d7c2dd4905284677a68c9 (diff) |
Avoid LIKELY/UNLIKELY macros
Diffstat (limited to 'alc/alc.cpp')
-rw-r--r-- | alc/alc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp index fb9ab430..2e474f3e 100644 --- a/alc/alc.cpp +++ b/alc/alc.cpp @@ -2414,7 +2414,7 @@ ALCenum UpdateDeviceParams(ALCdevice *device, const int *attrList) bool ResetDeviceParams(ALCdevice *device, const int *attrList) { /* If the device was disconnected, reset it since we're opened anew. */ - if UNLIKELY(!device->Connected.load(std::memory_order_relaxed)) + if(!device->Connected.load(std::memory_order_relaxed)) [[alunlikely]] { /* Make sure disconnection is finished before continuing on. */ device->waitForMix(); @@ -2446,7 +2446,7 @@ bool ResetDeviceParams(ALCdevice *device, const int *attrList) } ALCenum err{UpdateDeviceParams(device, attrList)}; - if LIKELY(err == ALC_NO_ERROR) return ALC_TRUE; + if(err == ALC_NO_ERROR) [[allikely]] return ALC_TRUE; alcSetError(device, err); return ALC_FALSE; |