C99

C99で疑似デフォルト引数

可変長引数マクロと可変長引数関数を組みあわせて引数の最後の1つにデフォルト値を与えることができる。 qnighy's gist: 189476 — Gist //This source code is for C99 //Pseudo default-argument feature for C99 #include <stdio.h> #define func(...) func_impl(__</stdio.h>…