diff options
author | Chris Robinson <chris.kcat@gmail.com> | 2023-03-01 11:35:39 -0800 |
---|---|---|
committer | Chris Robinson <chris.kcat@gmail.com> | 2023-03-01 11:35:39 -0800 |
commit | fde74453a62a1ce4b5efaac0ec1835b9f5731e25 (patch) | |
tree | ed74db646800b78ca8651bb5291453927f48cd93 /al/error.cpp | |
parent | ec9c421d312d6df701631877f6ce6256355101dc (diff) |
Use macros for the likely/unlikely attributes
The syntax parser for GCC 8 (and earlier?) fails when these attributes are in
certain places.
Diffstat (limited to 'al/error.cpp')
-rw-r--r-- | al/error.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/al/error.cpp b/al/error.cpp index 0340f430..afa7019a 100644 --- a/al/error.cpp +++ b/al/error.cpp @@ -85,7 +85,7 @@ AL_API ALenum AL_APIENTRY alGetError(void) START_API_FUNC { ContextRef context{GetContextRef()}; - if(!context) [[unlikely]] + if(!context) UNLIKELY { static constexpr ALenum deferror{AL_INVALID_OPERATION}; WARN("Querying error state on null context (implicitly 0x%04x)\n", deferror); |