aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/effects/null.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2013-05-26 08:54:34 -0700
committerChris Robinson <[email protected]>2013-05-26 08:54:34 -0700
commit82caba6bbe251d50731785e529cd55a6ecf91664 (patch)
treed42e32da57abd999abf34472d969f5ddef9bc6cc /Alc/effects/null.c
parent8808159d55a65cec92010622f63844e76644722c (diff)
Use the helper macros in more places
Diffstat (limited to 'Alc/effects/null.c')
-rw-r--r--Alc/effects/null.c48
1 files changed, 24 insertions, 24 deletions
diff --git a/Alc/effects/null.c b/Alc/effects/null.c
index 3d617b64..aed19a82 100644
--- a/Alc/effects/null.c
+++ b/Alc/effects/null.c
@@ -102,84 +102,84 @@ ALeffectStateFactory *ALnullStateFactory_getFactory(void)
void ALnull_SetParami(ALeffect *effect, ALCcontext *context, ALenum param, ALint val)
{
+ (void)effect;
+ (void)val;
switch(param)
{
default:
- alSetError(context, AL_INVALID_ENUM);
+ SET_ERROR_AND_RETURN(context, AL_INVALID_ENUM);
}
- (void)effect;
- (void)val;
}
void ALnull_SetParamiv(ALeffect *effect, ALCcontext *context, ALenum param, const ALint *vals)
{
+ (void)effect;
+ (void)vals;
switch(param)
{
default:
- alSetError(context, AL_INVALID_ENUM);
+ SET_ERROR_AND_RETURN(context, AL_INVALID_ENUM);
}
- (void)effect;
- (void)vals;
}
void ALnull_SetParamf(ALeffect *effect, ALCcontext *context, ALenum param, ALfloat val)
{
+ (void)effect;
+ (void)val;
switch(param)
{
default:
- alSetError(context, AL_INVALID_ENUM);
+ SET_ERROR_AND_RETURN(context, AL_INVALID_ENUM);
}
- (void)effect;
- (void)val;
}
void ALnull_SetParamfv(ALeffect *effect, ALCcontext *context, ALenum param, const ALfloat *vals)
{
+ (void)effect;
+ (void)vals;
switch(param)
{
default:
- alSetError(context, AL_INVALID_ENUM);
+ SET_ERROR_AND_RETURN(context, AL_INVALID_ENUM);
}
- (void)effect;
- (void)vals;
}
void ALnull_GetParami(ALeffect *effect, ALCcontext *context, ALenum param, ALint *val)
{
+ (void)effect;
+ (void)val;
switch(param)
{
default:
- alSetError(context, AL_INVALID_ENUM);
+ SET_ERROR_AND_RETURN(context, AL_INVALID_ENUM);
}
- (void)effect;
- (void)val;
}
void ALnull_GetParamiv(ALeffect *effect, ALCcontext *context, ALenum param, ALint *vals)
{
+ (void)effect;
+ (void)vals;
switch(param)
{
default:
- alSetError(context, AL_INVALID_ENUM);
+ SET_ERROR_AND_RETURN(context, AL_INVALID_ENUM);
}
- (void)effect;
- (void)vals;
}
void ALnull_GetParamf(ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *val)
{
+ (void)effect;
+ (void)val;
switch(param)
{
default:
- alSetError(context, AL_INVALID_ENUM);
+ SET_ERROR_AND_RETURN(context, AL_INVALID_ENUM);
}
- (void)effect;
- (void)val;
}
void ALnull_GetParamfv(ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *vals)
{
+ (void)effect;
+ (void)vals;
switch(param)
{
default:
- alSetError(context, AL_INVALID_ENUM);
+ SET_ERROR_AND_RETURN(context, AL_INVALID_ENUM);
}
- (void)effect;
- (void)vals;
}
DEFINE_ALEFFECT_VTABLE(ALnull);