aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include/alError.h
diff options
context:
space:
mode:
Diffstat (limited to 'OpenAL32/Include/alError.h')
-rw-r--r--OpenAL32/Include/alError.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenAL32/Include/alError.h b/OpenAL32/Include/alError.h
index f94802b3..9fb7a7e3 100644
--- a/OpenAL32/Include/alError.h
+++ b/OpenAL32/Include/alError.h
@@ -26,6 +26,11 @@ ALvoid alSetError(ALCcontext *context, ALenum errorCode, ALuint objid, const cha
goto lbl; \
} while(0)
+#define SET_ERR_AND_RETURN(ctx, err, objid, msg) do { \
+ alSetError((ctx), (err), (objid), (msg)); \
+ return; \
+} while(0)
+
#ifdef __cplusplus
}
#endif