This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Is there a way to do the following with gcc?
- From: Andy Curtis <acurtis at askjeeves dot com>
- To: "'gcc at gcc dot gnu dot org'" <gcc at gcc dot gnu dot org>
- Date: Mon, 17 Mar 2003 15:28:58 -0500
- Subject: 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