diff options
author | Chris Robinson <[email protected]> | 2021-10-03 06:41:14 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2021-10-03 06:41:14 -0700 |
commit | 38d3ea35017944929f9d52a1c840ace68846fee9 (patch) | |
tree | 3e667cfd07130b4e09d21658fdf48ba0d9e89163 /al/error.cpp | |
parent | c66e4f5bd447d2bb1a38446510bff87ada00fb9f (diff) |
Make simpler likely/unlikely functions and use them in some 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 b5b6f430..8cabf8c3 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 UNLIKELY(!context) + if(unlikely(!context)) { constexpr ALenum deferror{AL_INVALID_OPERATION}; WARN("Querying error state on null context (implicitly 0x%04x)\n", deferror); |