From 38d3ea35017944929f9d52a1c840ace68846fee9 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 3 Oct 2021 06:41:14 -0700 Subject: Make simpler likely/unlikely functions and use them in some places --- al/error.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'al/error.cpp') 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); -- cgit v1.2.3