diff options
Diffstat (limited to 'al/error.h')
-rw-r--r-- | al/error.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/al/error.h b/al/error.h deleted file mode 100644 index 6408b60c..00000000 --- a/al/error.h +++ /dev/null @@ -1,24 +0,0 @@ -#ifndef AL_ERROR_H -#define AL_ERROR_H - -#include "AL/al.h" -#include "AL/alc.h" - -#include "logging.h" - - -extern bool TrapALError; - -void alSetError(ALCcontext *context, ALenum errorCode, const char *msg, ...) DECL_FORMAT(printf, 3, 4); - -#define SETERR_GOTO(ctx, err, lbl, ...) do { \ - alSetError((ctx), (err), __VA_ARGS__); \ - goto lbl; \ -} while(0) - -#define SETERR_RETURN(ctx, err, retval, ...) do { \ - alSetError((ctx), (err), __VA_ARGS__); \ - return retval; \ -} while(0) - -#endif |