#include "stdafx.h" #include<stdio.h> #include<stdlib.h> #include<string.h> //是否开启DEBUG模式 //#define _DEBUG_ 0 //不开启 #define _DEBUG_ 1 //开启 #if _DEBUG_ #define PRINTF(...) printf(__VA_ARGS__) #else #define PRINTF(...) #endif int main() { int a, b, c; b = 1; c = 2; a = b + c; PRINTF("a = %d\n", a); getchar(); return 0; }
IAR在线调试时用DEBUG打印调试信息
猜你喜欢
转载自blog.csdn.net/weibo1230123/article/details/80369489
今日推荐
周排行