GCCã®ããªããã»ããµã®ä¾¿å©ãªæ¡å¼µãç¥ã£ãã®ã§ã¡ã¢ã é¢æ°å½¢å¼ãã¯ãã®å¼æ°ã®æ°ã¯åºå®ãã¨ããã®ã¯ããç¥ããã¦ããã¨æããã©ãç¾å¨ã®Cè¨èªï¼C99ï¼ã§ã¯ãµãã¼ãããã¦ããã // (1) #define DEBUG_PRINT(...) printf(__VA_ARGS__)C++ã®ä»æ§ã«ã¯å ¥ã£ã¦ããªããã©ãã¾ãGCCã§ã¯C++ã§ã使ãã¦ããã ãã ã__VA_ARGS__ ã¯ãããåã£ããã¨ãããã«ã¯éçããããã¨ãæè¿ç¥ã£ããä¾ãã°ããã® DEBUG_PRINT() ã®è¡¨ç¤ºã«é¢æ°åã追å ãããã¨ããã // (2) #define DEBUG_PRINT(fmt, ...) \ printf("%s(): "fmt, __func__, __VA_ARGS__)__func__ ã¯é¢æ°åã®æååãæãç¹å¥ãªèå¥åã§ããããC99ããã¯ãã«ä¼¼ã¦ãããã©ãã¯ãã§ã¯ãªãã®ã§ã__FILE__ã
{{#tags}}- {{label}}
{{/tags}}