aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-08-22 07:22:02 -0700
committerChris Robinson <[email protected]>2011-08-22 07:22:02 -0700
commitc1f435cc18df4e2597d166b8b1c8a0d4ba9b23a6 (patch)
tree49e06bfa81531efa7217a487dbea712a35af5905 /OpenAL32/Include
parent858592832f7adf39dd1983ff72ebeda75cc4dd16 (diff)
Don't use the thunk array for object lookups
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r--OpenAL32/Include/alThunk.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/OpenAL32/Include/alThunk.h b/OpenAL32/Include/alThunk.h
index b4dae22a..9514db4d 100644
--- a/OpenAL32/Include/alThunk.h
+++ b/OpenAL32/Include/alThunk.h
@@ -12,25 +12,22 @@ extern "C" {
void alThunkInit(void);
void alThunkExit(void);
-ALenum alThunkAddEntry(ALvoid *ptr, ALuint *idx);
+ALenum alThunkNewEntry(ALuint *idx);
void alThunkRemoveEntry(ALuint index);
-ALvoid *alThunkLookupEntry(ALuint index);
#if (SIZEOF_VOIDP > SIZEOF_UINT)
#define ALTHUNK_INIT() alThunkInit()
#define ALTHUNK_EXIT() alThunkExit()
-#define ALTHUNK_ADDENTRY(p,i) alThunkAddEntry(p,i)
+#define ALTHUNK_NEWENTRY(p,i) alThunkNewEntry(i)
#define ALTHUNK_REMOVEENTRY(i) alThunkRemoveEntry(i)
-#define ALTHUNK_LOOKUPENTRY(i) alThunkLookupEntry(i)
#else
#define ALTHUNK_INIT()
#define ALTHUNK_EXIT()
-#define ALTHUNK_ADDENTRY(p,i) ((*(i) = (ALuint)p),AL_NO_ERROR)
+#define ALTHUNK_NEWENTRY(p,i) ((*(i) = (ALuint)p),AL_NO_ERROR)
#define ALTHUNK_REMOVEENTRY(i) ((ALvoid)i)
-#define ALTHUNK_LOOKUPENTRY(i) ((ALvoid*)(i))
#endif // (SIZEOF_VOIDP > SIZEOF_INT)