This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Define macro with ...


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]