From 4fe6eba8c79a4c9cad91d6f6835506cde96a48c4 Mon Sep 17 00:00:00 2001
From: Chris Robinson <chris.kcat@gmail.com>
Date: Sat, 24 Dec 2022 02:42:09 -0800
Subject: Avoid using a macro to set a context error and return

---
 al/event.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'al/event.cpp')

diff --git a/al/event.cpp b/al/event.cpp
index 19509d2f..2aceba3a 100644
--- a/al/event.cpp
+++ b/al/event.cpp
@@ -154,7 +154,7 @@ START_API_FUNC
 
     if(count < 0) context->setError(AL_INVALID_VALUE, "Controlling %d events", count);
     if(count <= 0) return;
-    if(!types) SETERR_RETURN(context, AL_INVALID_VALUE,, "NULL pointer");
+    if(!types) return context->setError(AL_INVALID_VALUE, "NULL pointer");
 
     ContextBase::AsyncEventBitset flags{};
     const ALenum *types_end = types+count;
@@ -173,7 +173,7 @@ START_API_FUNC
         }
     );
     if(bad_type != types_end)
-        SETERR_RETURN(context, AL_INVALID_ENUM,, "Invalid event type 0x%04x", *bad_type);
+        return context->setError(AL_INVALID_ENUM, "Invalid event type 0x%04x", *bad_type);
 
     if(enable)
     {
-- 
cgit v1.2.3