diff options
author | Chris Robinson <[email protected]> | 2011-08-22 07:40:14 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-08-22 07:40:14 -0700 |
commit | 199df253caad196162b02d61fd7ed06606193890 (patch) | |
tree | a7ef47822a1593b600c440da9cc2f0e5586df8be /OpenAL32/Include | |
parent | c1f435cc18df4e2597d166b8b1c8a0d4ba9b23a6 (diff) |
Always use the thunk functions to get object IDs
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r-- | OpenAL32/Include/alThunk.h | 35 |
1 files changed, 8 insertions, 27 deletions
diff --git a/OpenAL32/Include/alThunk.h b/OpenAL32/Include/alThunk.h index 9514db4d..adc77dec 100644 --- a/OpenAL32/Include/alThunk.h +++ b/OpenAL32/Include/alThunk.h @@ -1,39 +1,20 @@ -#ifndef _AL_THUNK_H_ -#define _AL_THUNK_H_ +#ifndef ALTHUNK_H +#define ALTHUNK_H -#include "config.h" - -#include "AL/al.h" -#include "AL/alc.h" +#include "alMain.h" #ifdef __cplusplus extern "C" { #endif -void alThunkInit(void); -void alThunkExit(void); -ALenum alThunkNewEntry(ALuint *idx); -void alThunkRemoveEntry(ALuint index); - -#if (SIZEOF_VOIDP > SIZEOF_UINT) - -#define ALTHUNK_INIT() alThunkInit() -#define ALTHUNK_EXIT() alThunkExit() -#define ALTHUNK_NEWENTRY(p,i) alThunkNewEntry(i) -#define ALTHUNK_REMOVEENTRY(i) alThunkRemoveEntry(i) - -#else - -#define ALTHUNK_INIT() -#define ALTHUNK_EXIT() -#define ALTHUNK_NEWENTRY(p,i) ((*(i) = (ALuint)p),AL_NO_ERROR) -#define ALTHUNK_REMOVEENTRY(i) ((ALvoid)i) - -#endif // (SIZEOF_VOIDP > SIZEOF_INT) +void ThunkInit(void); +void ThunkExit(void); +ALenum NewThunkEntry(ALuint *index); +void FreeThunkEntry(ALuint index); #ifdef __cplusplus } #endif -#endif //_AL_THUNK_H_ +#endif //ALTHUNK_H |