variadic paramter macro

#define debug_printf(str, ...)     do {         printf(str, __VA_ARGS__);     } while (0)

debug_printf("Hwllo world: %d %d\n", 1,2); 

posted on 2009-12-29 17:17  cutepig  阅读(219)  评论(0)    收藏  举报

导航