ãå¼æ°ã§ä¸ããããæ¸å¼ï¼å¼æ°ããã½ã¼ã¹ãã¡ã¤ã«åã¨è¡çªå·ä»ãã§è¡¨ç¤ºãããã¯ããã®ä½ãæ¹ï¼ç¨®ã printf ã¨ãã£ã¦ãåºåå ã¯ãããã¬ã®åºåã¦ã£ã³ãã¦ã§ã ï¼_CrtDbgReport 使ã£ã¦ãã®ã§ _CrtSetReportMode/_CrtSetReportFile ã§åºåå ãæ¨æºåºåã¨ãã«å¤ãããã¾ãï¼ã ãã®ï¼. __noop ã使ã é¢æ°ãªãã¸ã§ã¯ãã®ã³ã³ã¹ãã©ã¯ã¿ã§ __FILE__ 㨠__LINE__ ãåãåããæ¬å¼§æ¼ç®å㧠printf ãªæ¸å¼ã¨å¼æ°ãåãä»ãã¾ãã ãªãªã¼ã¹ãã«ãã§ã¯ __noop 㧠TRACE_F ãã¯ãã®ä¸èº«ãå®è¡ãããªãããã«ãã¾ãã #ifdef _DEBUG #include <crtdbg.h> #define TRACE_F debug_trace_format(__FILE__, __LINE__) class debug_trace
{{#tags}}- {{label}}
{{/tags}}