#define __DEBUG
#ifdef __DEBUG
#if 1
#define DEBUG(format,...) printf (format"\n", ##__VA_ARGS__)
#else
//可打印文件名、行号
#define DEBUG(format,...) printf("FILE: "__FILE__", LINE: %d: "format"\n", __LINE__, ##__VA_ARGS__)
#endif
#else
#define DEBUG(format, ...)
#endif

  //printf("argument[%d] is: %s\n", i, argv[i]);
  DEBUG("argument[%d] is: %s", i, argv[i]);




 

相关文章:

  • 2022-02-04
  • 2022-12-23
  • 2022-12-23
  • 2021-08-19
  • 2021-10-11
  • 2022-01-31
  • 2021-10-28
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-31
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案