diff options
Diffstat (limited to 'OpenAL32/Include/alError.h')
-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) |