| delorie.com/archives/browse.cgi | search |
| 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 <awhite AT mail DOT rosecom DOT ca> |
| 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 <djgpp AT delorie DOT com> |
| Subject: | outputing function name and line number |
| 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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |