36
36
return mHandler-> func (__VA_ARGS__); \
39
#define WRAPABLE_HND(num,itype,rtype, func, ...) \
40
rtype func (__VA_ARGS__); \
41
void func ## SetEnabled (itype *obj, bool enabled) \
39
#define WRAPABLE_HND(num, itype, rtype, func, ...) \
40
WRAPABLE_HND_ANY(num, itype, rtype, func,, __VA_ARGS__)
42
#define WRAPABLE_HND_CONST(num, itype, rtype, func, ...) \
43
WRAPABLE_HND_ANY(num, itype, rtype, func, const, __VA_ARGS__)
45
#define WRAPABLE_HND_ANY(num, itype, rtype, func, cons, ...) \
46
rtype func (__VA_ARGS__) cons; \
47
void func ## SetEnabled (cons itype *obj, bool enabled) \
43
functionSetEnabled (obj, num, enabled); \
49
functionSetEnabled ((itype*)obj, num, enabled); \
45
unsigned int func ## GetCurrentIndex () \
51
unsigned int func ## GetCurrentIndex () const \
47
53
return mCurrFunction[num]; \
150
156
void functionSetEnabled (T *, unsigned int, bool);
152
unsigned int mCurrFunction[N];
158
mutable unsigned int mCurrFunction[N];
153
159
std::vector<Interface> mInterface;