Go to the documentation of this file.
25 #ifndef __RPC_MACROS_H
26 #define __RPC_MACROS_H
33 #define RPC_SWITCH_START( message ) \
34 bool rpcHandled = false;\
36 BaseRpcMessage* ___msg = dynamic_cast<BaseRpcMessage*>(message);
41 #define RPC_SWITCH_END() \
44 #define IF_RPC_HANDLED \
56 #define RPC_DELEGATE( name, method ) \
57 name##Call* _##name##Call = dynamic_cast<name##Call*>(___msg); \
58 if (_##name##Call != NULL) { rpcHandled = true; method(_##name##Call); \
66 #define RPC_ON_CALL( name ) \
67 name##Call* _##name##Call = dynamic_cast<name##Call*>(___msg); \
68 if (_##name##Call != NULL && !rpcHandled)
75 #define RPC_ON_RESPONSE( name ) \
76 name##Response* _##name##Response = dynamic_cast<name##Response*>(___msg); \
77 if (_##name##Response != NULL && !rpcHandled)