ppdebug.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*------------------------------------------------------------------------------
  2. -- --
  3. -- This software is confidential and proprietary and may be used --
  4. -- only as expressly authorized by a licensing agreement from --
  5. -- --
  6. -- Hantro Products Oy. --
  7. -- --
  8. -- (C) COPYRIGHT 2006 HANTRO PRODUCTS OY --
  9. -- ALL RIGHTS RESERVED --
  10. -- --
  11. -- The entire notice above must be reproduced --
  12. -- on all copies and should not be removed. --
  13. -- --
  14. --------------------------------------------------------------------------------
  15. --
  16. -- Abstract : Utility macros for debugging and tracing
  17. --
  18. --------------------------------------------------------------------------------
  19. --
  20. -- Version control information, please leave untouched.
  21. --
  22. -- $RCSfile: ppdebug.h,v $
  23. -- $Date: 2007/05/15 09:39:57 $
  24. -- $Revision: 1.1 $
  25. --
  26. ------------------------------------------------------------------------------*/
  27. #ifndef __PPDEBUG_H__
  28. #define __PPDEBUG_H__
  29. /* macro for assertion, used only when _ASSERT_USED is defined */
  30. #ifdef _ASSERT_USED
  31. #ifndef ASSERT
  32. #include <assert.h>
  33. #define ASSERT(expr) assert(expr)
  34. #endif
  35. #else
  36. #define ASSERT(expr)
  37. #endif
  38. /* macro for debug printing, used only when _DEBUG_PRINT is defined */
  39. #ifdef _PPDEBUG_PRINT
  40. #include <stdio.h>
  41. #define PPDEBUG_PRINT(args) printf args
  42. #else
  43. #define PPDEBUG_PRINT(args)
  44. #endif
  45. #endif /* __PPDEBUG_H__ */