Remove redundant void argument list in function def
[openal-soft.git] / OpenAL32 / Include / alError.h
blob858f81de539b5174c2407e0b191e2feb1c43e3ee
1 #ifndef _AL_ERROR_H_
2 #define _AL_ERROR_H_
4 #include "alMain.h"
5 #include "logging.h"
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
11 extern ALboolean TrapALError;
13 void alSetError(ALCcontext *context, ALenum errorCode, const char *msg, ...) DECL_FORMAT(printf, 3, 4);
15 #define SETERR_GOTO(ctx, err, lbl, ...) do { \
16 alSetError((ctx), (err), __VA_ARGS__); \
17 goto lbl; \
18 } while(0)
20 #define SETERR_RETURN(ctx, err, retval, ...) do { \
21 alSetError((ctx), (err), __VA_ARGS__); \
22 return retval; \
23 } while(0)
25 #ifdef __cplusplus
27 #endif
29 #endif