vp6hwd_debug.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. - Description : ...
  17. -
  18. --------------------------------------------------------------------------------
  19. -
  20. - Version control information, please leave untouched.
  21. -
  22. - $RCSfile: vp6hwd_debug.h,v $
  23. - $Revision: 1.1 $
  24. - $Date: 2008/04/14 10:13:25 $
  25. -
  26. ------------------------------------------------------------------------------*/
  27. #ifndef __VP6HWD_DEBUG_H__
  28. #define __VP6HWD_DEBUG_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 _DEBUG_PRINT
  40. #include <stdio.h>
  41. #define DEBUG_PRINT(args) printf args
  42. #else
  43. #define DEBUG_PRINT(args)
  44. #endif
  45. /* macro for error printing, used only when _ERROR_PRINT is defined */
  46. #ifdef _ERROR_PRINT
  47. #include <stdio.h>
  48. #define ERROR_PRINT(msg) fprintf(stderr,"ERROR: %s\n",msg)
  49. #else
  50. #define ERROR_PRINT(msg)
  51. #endif
  52. #endif /* __VP6HWD_DEBUG_H__ */