aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/messagebus/message_status.cpp
blob: a18d82f3054413c84589ae803cd2c3229e498fd0 (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";
}