Paulo Flabiano Smorigo wrote: > Hi everybody, > > I have a function for the log like bellow: > void log(DebugLevel_t level, FILE *pArq, const char *fmt, ...); > > I want to create a macro with the __func__, __FILE__ and __LINE__ defines. > > I created a similar macro for my exception function: > #define EXCEPTION(code) exception(code, __func__, __FILE__, __LINE__); > > How do I create this macro if the function has "..."? > > Thanks in advance, > Paulo Flabiano Smorigo > > Hey Paulo, this page greatly explains how to define variadic macros: http://gcc.gnu.org/onlinedocs/gcc/Variadic-Macros.html Andi