Define macro with ...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux