Define macro with ...

Paulo Flabiano Smorigo pfsmorigo@gmail.com
Thu Dec 3 13:11:00 GMT 2009


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



More information about the Gcc-help mailing list