aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-01-24 12:45:56 -0800
committerChris Robinson <[email protected]>2018-01-24 12:45:56 -0800
commit395278fcdb2f83ba35b5fba9341bb868af4330b2 (patch)
treeeb3993d6d4bb3b3bb369b58ab0683c72ad932bcc /OpenAL32/Include
parent786a05876e492074aba245209d11fb73d05ad60a (diff)
Set the buffer load error in LoadData
Diffstat (limited to 'OpenAL32/Include')
-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