comparison ext/openal-soft/OpenAL32/Include/alThunk.h @ 0:4a0efb7baf70

* Datasets becomes the new trunk and retires after that :-)
author mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
date Sun, 29 Jun 2008 18:44:17 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4a0efb7baf70
1 #ifndef _AL_THUNK_H_
2 #define _AL_THUNK_H_
3
4 #include "config.h"
5
6 #include "AL/al.h"
7 #include "AL/alc.h"
8
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12
13 void alThunkInit(void);
14 void alThunkExit(void);
15 ALuint alThunkAddEntry(ALvoid * ptr);
16 void alThunkRemoveEntry(ALuint index);
17 ALvoid *alThunkLookupEntry(ALuint index);
18
19 #if (SIZEOF_VOIDP > SIZEOF_UINT)
20
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)
26
27 #else
28
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))
34
35 #endif // (SIZEOF_VOIDP > SIZEOF_INT)
36
37 #ifdef __cplusplus
38 }
39 #endif
40
41 #endif //_AL_THUNK_H_
42