18 #ifndef _COBALT_WRAPPERS_H
19 #define _COBALT_WRAPPERS_H
21 #define __stringify_1(x...) #x
22 #define __stringify(x...) __stringify_1(x)
24 #define __WRAP(call) __wrap_ ## call
25 #define __STD(call) __real_ ## call
26 #define __COBALT(call) __cobalt_ ## call
27 #define __RT(call) __COBALT(call)
28 #define COBALT_DECL(T, P) \
29 __typeof__(T) __RT(P); \
30 __typeof__(T) __STD(P); \
31 __typeof__(T) __WRAP(P)
49 #define COBALT_IMPL(T, I, A) \
50 __typeof__(T) __wrap_ ## I A __attribute__((alias("__cobalt_" __stringify(I)), weak)); \
51 __typeof__(T) __cobalt_ ## I A