debug.h 646 B

123456789101112131415161718192021222324
  1. /*****************************************************************************
  2. * | File : Debug.h
  3. * | Author : Waveshare team
  4. * | Function : debug with printf
  5. * | Info :
  6. * Image scanning
  7. * Please use progressive scanning to generate images or fonts
  8. *----------------
  9. * | This version: V1.0
  10. * | Date : 2018-01-11
  11. * | Info : Basic version
  12. *
  13. ******************************************************************************/
  14. #ifndef __DEBUG_H
  15. #define __DEBUG_H
  16. #define DEBUG 1
  17. #if DEBUG
  18. #define Debug(__info,...) printf("Debug: " __info,##__VA_ARGS__)
  19. #else
  20. #define Debug(__info,...)
  21. #endif
  22. #endif