2
0

Messaging.h 381 B

12345678910111213141516171819
  1. #ifndef MESSAGING_H
  2. #define MESSAGING_H
  3. #include <string>
  4. #include "App.h"
  5. #include "MessageHandler.h"
  6. #define MESSAGE(x) \
  7. app->getMessageHandler().write(__FILE__, __LINE__, __func__, std::string() + x)
  8. #define INFO(x) MESSAGE(std::string("Info: ") + x)
  9. #define WARNING(x) MESSAGE(std::string("Warning: ") + x)
  10. #define ERROR(x) MESSAGE(std::string("Error: ") + x)
  11. #endif