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