diff options
author | Chris Robinson <[email protected]> | 2018-01-25 15:59:59 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-01-25 15:59:59 -0800 |
commit | 99f0377ae3f24ebf3391a09940d888dec1d4b4c4 (patch) | |
tree | ec47c22f03432cf123f56aa2523eb94b56e410ed /OpenAL32/Include | |
parent | 932939c5a80971ee155613038c392603d92fdf03 (diff) |
Construct error messages using parameterized values
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r-- | OpenAL32/Include/alError.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenAL32/Include/alError.h b/OpenAL32/Include/alError.h index 3dc16103..479697f2 100644 --- a/OpenAL32/Include/alError.h +++ b/OpenAL32/Include/alError.h @@ -9,15 +9,15 @@ extern "C" { extern ALboolean TrapALError; -ALvoid alSetError(ALCcontext *context, ALenum errorCode, ALuint objid, const char *msg); +void alSetError(ALCcontext *context, ALenum errorCode, const char *msg, ...); -#define SETERR_GOTO(ctx, err, objid, msg, lbl) do { \ - alSetError((ctx), (err), (objid), (msg)); \ +#define SETERR_GOTO(ctx, err, lbl, ...) do { \ + alSetError((ctx), (err), __VA_ARGS__); \ goto lbl; \ } while(0) -#define SETERR_RETURN(ctx, err, objid, msg, retval) do { \ - alSetError((ctx), (err), (objid), (msg)); \ +#define SETERR_RETURN(ctx, err, retval, ...) do { \ + alSetError((ctx), (err), __VA_ARGS__); \ return retval; \ } while(0) |