aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/messagebus/message_status.cpp
blob: c895e6a9dfc8e13ab49d5c0c89046ab4fe1e6390 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "message_status.h" 
 
using namespace NBus; 
 
const char* NBus::MessageStatusDescription(EMessageStatus messageStatus) { 
#define MESSAGE_STATUS_DESCRIPTION_GEN(name, description, ...) \
    if (messageStatus == name)                                 \
        return description;
 
    MESSAGE_STATUS_MAP(MESSAGE_STATUS_DESCRIPTION_GEN) 
 
    return "Unknown"; 
}