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
Since it only works for gcc, it would be good to define it this way to avoid errors on other compilers.
#ifdef __GNUC__ __attribute__ (( format( printf, 2, 3 ) )) #endif