diff options
Diffstat (limited to 'OpenAL32/Include/alError.h')
-rw-r--r-- | OpenAL32/Include/alError.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/OpenAL32/Include/alError.h b/OpenAL32/Include/alError.h index 0ade342d..b6186054 100644 --- a/OpenAL32/Include/alError.h +++ b/OpenAL32/Include/alError.h @@ -11,6 +11,16 @@ extern ALboolean TrapALError; ALvoid alSetError(ALCcontext *Context, ALenum errorCode); +#define SET_ERROR_AND_RETURN(ctx, err) do { \ + alSetError((ctx), (err)); \ + return; \ +} while(0) + +#define SET_AND_RETURN_ERROR(ctx, err) do { \ + alSetError((ctx), (err)); \ + return (err); \ +} while(0) + #ifdef __cplusplus } #endif |