diff options
author | Chris Robinson <[email protected]> | 2018-01-24 17:07:01 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-01-24 17:07:01 -0800 |
commit | 2ded5547ba431a0859bc08276ab720aea9ca92a8 (patch) | |
tree | 8f71cfb37a279805b162f9702839bad856f8dadf /OpenAL32/Include/alError.h | |
parent | 395278fcdb2f83ba35b5fba9341bb868af4330b2 (diff) |
Provide messages for the remaining AL errors
Diffstat (limited to 'OpenAL32/Include/alError.h')
-rw-r--r-- | OpenAL32/Include/alError.h | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/OpenAL32/Include/alError.h b/OpenAL32/Include/alError.h index 9fb7a7e3..3dc16103 100644 --- a/OpenAL32/Include/alError.h +++ b/OpenAL32/Include/alError.h @@ -11,24 +11,14 @@ extern ALboolean TrapALError; ALvoid alSetError(ALCcontext *context, ALenum errorCode, ALuint objid, const char *msg); -#define SET_ERROR_AND_RETURN(ctx, err) do { \ - alSetError((ctx), (err), 0, "Unimplemented message"); \ - return; \ -} while(0) - -#define SET_ERROR_AND_RETURN_VALUE(ctx, err, val) do { \ - alSetError((ctx), (err), 0, "Unimplemented message"); \ - return (val); \ -} while(0) - -#define SET_ERROR_AND_GOTO(ctx, err, lbl) do { \ - alSetError((ctx), (err), 0, "Unimplemented message"); \ +#define SETERR_GOTO(ctx, err, objid, msg, lbl) do { \ + alSetError((ctx), (err), (objid), (msg)); \ goto lbl; \ } while(0) -#define SET_ERR_AND_RETURN(ctx, err, objid, msg) do { \ +#define SETERR_RETURN(ctx, err, objid, msg, retval) do { \ alSetError((ctx), (err), (objid), (msg)); \ - return; \ + return retval; \ } while(0) #ifdef __cplusplus |