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/extension.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'al/extension.cpp') diff --git a/al/extension.cpp b/al/extension.cpp index 3d01d6c1..3a84ee08 100644 --- a/al/extension.cpp +++ b/al/extension.cpp @@ -40,7 +40,10 @@ START_API_FUNC if(!context) [[unlikely]] return AL_FALSE; if(!extName) [[unlikely]] - SETERR_RETURN(context, AL_INVALID_VALUE, AL_FALSE, "NULL pointer"); + { + context->setError(AL_INVALID_VALUE, "NULL pointer"); + return AL_FALSE; + } size_t len{strlen(extName)}; const char *ptr{context->mExtensionList}; -- cgit v1.2.3