-#define RECV_PROC(num, sig) static void receiver_proc##num(void) \
- { \
- TestMsg *rec_msg; \
- for (;;) \
- { \
- sig_wait(sig); \
- kprintf("Proc[%d]..get message\n", num); \
- rec_msg = containerof(msg_get(&test_port##num), TestMsg, msg); \
- timer_delay(rec_msg->delay); \
- rec_msg->result += rec_msg->val; \
- kprintf("Proc[%d]..process message val[%d],delay[%d],res[%d]\n", num, rec_msg->val, rec_msg->delay, rec_msg->result); \
- msg_reply(&rec_msg->msg); \
- kprintf("Proc[%d] reply\n", num); \
- } \
- }
+#define RECV_PROC(num, sig) \
+static void receiver_proc##num(void) \
+{ \
+ TestMsg *rec_msg; \
+ for (;;) \
+ { \
+ sig_wait(sig); \
+ kprintf("Proc[%d]..get message\n", num); \
+ rec_msg = containerof(msg_get(&test_port##num), TestMsg, msg); \
+ timer_delay(rec_msg->delay); \
+ rec_msg->result += rec_msg->val; \
+ kprintf("Proc[%d]..process message val[%d],delay[%d],res[%d]\n", num, rec_msg->val, rec_msg->delay, rec_msg->result); \
+ msg_reply(&rec_msg->msg); \
+ kprintf("Proc[%d] reply\n", num); \
+ } \
+}