I\'m trying to define a class method for debug prints that will behave like printf:
printf
inline void debug(const char* fmt, ...) __attribute__ ((form
You've done it. this is argument 1, so by saying format(printf, 2, 3) you're telling the compiler that you're NOT printing this, you're printing argument 2 (fmt) with additional arguments past that.
this
format(printf, 2, 3)
fmt