diff options
author | Chris Robinson <[email protected]> | 2022-12-24 02:42:09 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-12-24 02:42:09 -0800 |
commit | 4fe6eba8c79a4c9cad91d6f6835506cde96a48c4 (patch) | |
tree | 4f57bbdf4e5bdea34a4d0030ed8ad1bc876041fd /al/extension.cpp | |
parent | f177f62e6737fff413361fae89db728c7e3a0cf9 (diff) |
Avoid using a macro to set a context error and return
Diffstat (limited to 'al/extension.cpp')
-rw-r--r-- | al/extension.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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}; |