trace.h 457 B

12345678910111213141516171819202122
  1. /**
  2. * Copyright (c) 2011 Nokia Corporation.
  3. */
  4. #ifndef TRACE_H
  5. #define TRACE_H
  6. #ifdef GE_DEBUG
  7. #include <QDebug>
  8. #define DEBUG_POINT qDebug() << __PRETTY_FUNCTION__ << ":" << __LINE__
  9. #define DEBUG_INFO(ARG...) \
  10. qDebug() << __PRETTY_FUNCTION__ << ":" << __LINE__ << ":" << ARG
  11. #else
  12. #define DEBUG_POINT do {} while (0)
  13. #define DEBUG_INFO(...) do {} while (0)
  14. #endif
  15. #endif // TRACE_H
  16. // End of file.