14 # error "vt_user_message.h should only be included from vt_user.h"
17 #ifndef VT_USER_MESSAGE_H_
18 #define VT_USER_MESSAGE_H_
20 #define VT_MSG_DEFCOMM -1
22 #if (defined(VTRACE)) && !(defined(VTRACE_NO_MSG))
24 __VT_EXTERN_DECL
unsigned int VT_User_msg_comm_def__(
const char* cname);
25 __VT_EXTERN_DECL
void VT_User_msg_send__(
unsigned int cid,
unsigned int tag,
27 __VT_EXTERN_DECL
void VT_User_msg_recv__(
unsigned int cid,
unsigned int tag,
30 # define VT_MSG_COMM_DEF(n) VT_User_msg_comm_def__((n))
31 # define VT_MSG_SEND(c, t, s) VT_User_msg_send__((c), (t), (s))
32 # define VT_MSG_RECV(c, t, r) VT_User_msg_recv__((c), (t), (r))
36 # define VT_MSG_COMM_DEF(n) 0
37 # define VT_MSG_SEND(c, t, s)
38 # define VT_MSG_RECV(c, t, r)
43 #define VT_COMM_WORLD VT_MSG_DEFCOMM
44 #define VT_COMM_DEF VT_MSG_COMM_DEF
45 #define VT_SEND VT_MSG_SEND
46 #define VT_RECV VT_MSG_RECV