18 #ifndef _XENOMAI_TRANK_TRANK_H
19 #define _XENOMAI_TRANK_TRANK_H
21 #ifdef __XENO_COMPAT__
23 #define trank_warning(__fmt, __args...) \
24 warning("%s: " __fmt, __func__, ##__args)
26 #define __CURRENT(call) __current_ ## call
28 #define COMPAT_DECL(T, P) __typeof__(T) P
29 #define CURRENT_DECL(T, P) __typeof__(T) __CURRENT(P)
33 #include <boilerplate/compiler.h>
35 #define __CURRENT(call) call
37 #define COMPAT_DECL(T, P)
38 #define CURRENT_DECL(T, P) __typeof__(T) P; \
39 __typeof__(T) __current_ ## P
41 #define CURRENT_IMPL(T, I, A) \
42 __typeof__(T) I A __attribute__((alias("__current_" __stringify(I)), weak)); \
43 __typeof__(T) __current_ ## I A