From 83432a7e5c7f565a08c41bb104ae25286c5fc82b Mon Sep 17 00:00:00 2001
From: Chris Robinson <chris.kcat@gmail.com>
Date: Sun, 28 Jul 2019 19:09:07 -0700
Subject: Move some headers out of the Include subdirectory

---
 OpenAL32/alError.h | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 OpenAL32/alError.h

(limited to 'OpenAL32/alError.h')

diff --git a/OpenAL32/alError.h b/OpenAL32/alError.h
new file mode 100644
index 00000000..0abd6b26
--- /dev/null
+++ b/OpenAL32/alError.h
@@ -0,0 +1,22 @@
+#ifndef _AL_ERROR_H_
+#define _AL_ERROR_H_
+
+#include "alcmain.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
-- 
cgit v1.2.3