X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Message-ID: <406767EE.3020102@mail.rosecom.ca> Date: Sun, 28 Mar 2004 19:03:58 -0500 From: April White User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031013 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 To: djgpp Subject: outputing function name and line number Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com Hello, I know about the __FUNCTION__ and __PRETTY_FUNCTION__ string constants, as well as __LINE__ I would like to put the two together. I thought I could use macros to trick the compiler into doing it, but I have not succeeded yet. I have tried two and three levels of macro calls, using the # and ## operators. Can this be done? Thank you. April