1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#ifndef AL_DIRECT_DEFS_H
#define AL_DIRECT_DEFS_H
#define DECL_FUNC(R, Name) \
R AL_API Name(void) START_API_FUNC \
{ \
return Name##Direct(GetContextRef().get()); \
} END_API_FUNC
#define DECL_FUNC1(R, Name, T1) \
R AL_API Name(T1 a) START_API_FUNC \
{ \
return Name##Direct(GetContextRef().get(), a); \
} END_API_FUNC
#define DECL_FUNC2(R, Name, T1, T2) \
R AL_API Name(T1 a, T2 b) START_API_FUNC \
{ \
return Name##Direct(GetContextRef().get(), a, b); \
} END_API_FUNC
#define DECL_FUNCEXT(R, Name,Ext) \
R AL_API Name##Ext(void) START_API_FUNC \
{ \
return Name##Direct##Ext(GetContextRef().get()); \
} END_API_FUNC
#define DECL_FUNCEXT2(R, Name,Ext, T1, T2) \
R AL_API Name##Ext(T1 a, T2 b) START_API_FUNC \
{ \
return Name##Direct##Ext(GetContextRef().get(), a, b); \
} END_API_FUNC
#endif /* AL_DIRECT_DEFS_H */
|