Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # define DEFINEFUNC(ret, func, args, argcall, funcret) \
- typedef ret (* _q_PTR_##func) args; \
- static inline ret q_##func args \
- { \
- static _q_PTR_##func ptr; \
- if (!ptr) \
- ptr = (_q_PTR_##func) qdbus_resolve_me(#func); \
- std::cout << ptr << std::endl; \
- funcret ptr argcall; \
- }
Add Comment
Please, Sign In to add comment