This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Variadic functions

Is there any construction available in the SDK, to achieve printing functions, with an undefined number of parameters ? The classic example :

#ifdef CONFIG_DEBUG
#define DBG_PRINT(...)                  printf(__VA_ARGS__)
#else
#define DBG_PRINT(...)                  {}
#endif

builds sucessfully, but I am unsure how to redirect the standard output after that.

Related