Move ALu.c to the Alc directory
[openal-soft.git] / OpenAL32 / Include / alThunk.h
blob2ed32871b7370517620adc74c29124ee183fbf29
1 #ifndef _AL_THUNK_H_
2 #define _AL_THUNK_H_
4 #include "config.h"
6 #include "AL/al.h"
7 #include "AL/alc.h"
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
13 #if (SIZEOF_VOIDP > SIZEOF_UINT)
15 void alThunkInit(void);
16 void alThunkExit(void);
17 ALuint alThunkAddEntry(ALvoid * ptr);
18 void alThunkRemoveEntry(ALuint index);
19 ALvoid *alThunkLookupEntry(ALuint index);
21 #define ALTHUNK_INIT() alThunkInit()
22 #define ALTHUNK_EXIT() alThunkExit()
23 #define ALTHUNK_ADDENTRY(p) alThunkAddEntry(p)
24 #define ALTHUNK_REMOVEENTRY(i) alThunkRemoveEntry(i)
25 #define ALTHUNK_LOOKUPENTRY(i) alThunkLookupEntry(i)
27 #else
29 #define ALTHUNK_INIT()
30 #define ALTHUNK_EXIT()
31 #define ALTHUNK_ADDENTRY(p) ((ALuint)p)
32 #define ALTHUNK_REMOVEENTRY(i)
33 #define ALTHUNK_LOOKUPENTRY(i) ((ALvoid*)(i))
35 #endif // (SIZEOF_VOIDP > SIZEOF_INT)
37 #ifdef __cplusplus
39 #endif
41 #endif //_AL_THUNK_H_