trace.h 617 B

1234567891011121314151617181920212223242526
  1. /**
  2. * Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
  3. * All rights reserved.
  4. *
  5. * For the applicable distribution terms see the license.txt -file, included in
  6. * the distribution.
  7. */
  8. #ifndef TRACE_H
  9. #define TRACE_H
  10. #ifdef GE_DEBUG
  11. #include <QDebug>
  12. #define DEBUG_POINT qDebug() << __PRETTY_FUNCTION__ << ":" << __LINE__
  13. #define DEBUG_INFO(ARG...) \
  14. qDebug() << __PRETTY_FUNCTION__ << ":" << __LINE__ << ":" << ARG
  15. #else
  16. #define DEBUG_POINT do {} while (0)
  17. #define DEBUG_INFO(...) do {} while (0)
  18. #endif
  19. #endif // TRACE_H
  20. // End of file.