aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-06-17 23:59:25 -0700
committerChris Robinson <[email protected]>2011-06-17 23:59:25 -0700
commit0d39ac652889bc2ecea0286fe24fcdcd6c04995e (patch)
treed21b0a88ed08e2901c5e5a6049705fb64a9d8247 /OpenAL32/Include
parent157e1394d6d3d32630d287a9725396ec4dff24bb (diff)
Allow alThunkAddEntry to return a proper error
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r--OpenAL32/Include/alThunk.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenAL32/Include/alThunk.h b/OpenAL32/Include/alThunk.h
index 902f00e5..b4dae22a 100644
--- a/OpenAL32/Include/alThunk.h
+++ b/OpenAL32/Include/alThunk.h
@@ -12,7 +12,7 @@ extern "C" {
void alThunkInit(void);
void alThunkExit(void);
-ALuint alThunkAddEntry(ALvoid *ptr);
+ALenum alThunkAddEntry(ALvoid *ptr, ALuint *idx);
void alThunkRemoveEntry(ALuint index);
ALvoid *alThunkLookupEntry(ALuint index);
@@ -20,7 +20,7 @@ ALvoid *alThunkLookupEntry(ALuint index);
#define ALTHUNK_INIT() alThunkInit()
#define ALTHUNK_EXIT() alThunkExit()
-#define ALTHUNK_ADDENTRY(p) alThunkAddEntry(p)
+#define ALTHUNK_ADDENTRY(p,i) alThunkAddEntry(p,i)
#define ALTHUNK_REMOVEENTRY(i) alThunkRemoveEntry(i)
#define ALTHUNK_LOOKUPENTRY(i) alThunkLookupEntry(i)
@@ -28,7 +28,7 @@ ALvoid *alThunkLookupEntry(ALuint index);
#define ALTHUNK_INIT()
#define ALTHUNK_EXIT()
-#define ALTHUNK_ADDENTRY(p) ((ALuint)p)
+#define ALTHUNK_ADDENTRY(p,i) ((*(i) = (ALuint)p),AL_NO_ERROR)
#define ALTHUNK_REMOVEENTRY(i) ((ALvoid)i)
#define ALTHUNK_LOOKUPENTRY(i) ((ALvoid*)(i))