aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-01-25 23:52:09 -0800
committerChris Robinson <[email protected]>2018-01-25 23:52:09 -0800
commit6ae7fc5df1184f748b9c71f3f8d0dfe504ae19b9 (patch)
tree612b20da7623b32e58550526a4d3fd72499e5aca /OpenAL32/Include
parent99f0377ae3f24ebf3391a09940d888dec1d4b4c4 (diff)
Add the printf-format attribute to alSetError
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r--OpenAL32/Include/alError.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenAL32/Include/alError.h b/OpenAL32/Include/alError.h
index 479697f2..858f81de 100644
--- a/OpenAL32/Include/alError.h
+++ b/OpenAL32/Include/alError.h
@@ -2,6 +2,7 @@
#define _AL_ERROR_H_
#include "alMain.h"
+#include "logging.h"
#ifdef __cplusplus
extern "C" {
@@ -9,7 +10,7 @@ extern "C" {
extern ALboolean TrapALError;
-void alSetError(ALCcontext *context, ALenum errorCode, const char *msg, ...);
+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__); \