message_status.cpp 366 B

12345678910111213
  1. #include "message_status.h"
  2. using namespace NBus;
  3. const char* NBus::MessageStatusDescription(EMessageStatus messageStatus) {
  4. #define MESSAGE_STATUS_DESCRIPTION_GEN(name, description, ...) \
  5. if (messageStatus == name) \
  6. return description;
  7. MESSAGE_STATUS_MAP(MESSAGE_STATUS_DESCRIPTION_GEN)
  8. return "Unknown";
  9. }