This is the mail archive of the gcc@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]

Is there a way to do the following with gcc?


#define FUNC(fmt, ...)  NEWFUNC(__FILE__, __LINE__, fmt, ...)
I was wanting to create a log function which could know the file and lineno
without having to pass it in.  I also wanted the log function to use the ...
to allow it to work like printf.
 
-Andy

===========================
Andy Curtis
Web Search Sr. Software Engineer
Jeeves Solutions
24 Prime Park Way
Natick, MA 01721
Phone: 304-229-6344
Cell: 304-671-2111


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