Variable Args in macros.
Jeffrey Holle
jeff.holle@verizon.net
Tue Jun 29 01:29:00 GMT 2004
I am using gcc v3.3.2 on a linux system.
I want to create a macro that captures the __FILE__ and __LINE__ macros
in the process of calling a function that uses variable args.
The synopsis of the function to be called function is currently:
void throwException(const char *msg1 ...);
I assume that one thing that this process is needed to change is to:
void throwException( const char *moduleName, int lineno ...)
Is it possible to create this macro? If so what would it look like?
More information about the Gcc-help
mailing list