Re: [Cppunit-devel] GCC: __PRETTY_FUNCTION__
Brought to you by:
blep
From: Volker B. <vbo...@te...> - 2002-04-16 07:28:08
|
On Tue, 16 Apr 2002, Baptiste Lepilleur wrote: > Are others interested in the __PRETTY_FUNCTION__ support ? I was digging = in > the ML archive when I found that very old mail (that apparently went > unanswered :-( ). >=20 > Suggested implementation: extending SourceLine (that's a 10mn change sinc= e > everything is centralized there. What a foresight ;-) ). >=20 > The big bad thing that will take time is detecting gcc and adding the > necessary autoconf/configure thingy. Well, and may be figuring out how to > extend the Outputters... ;-) the following configure.in excerpt detects gcc and show how to use the result: AC_PROG_CXX if test X"$GXX" =3D Xyes; then echo "we're using GNU g++" fi On the other hand testing #ifdef __GNUC__ should be enough... As you see in /usr/include/assert.h there is some gcc-version dependency but this can be safely ignored I think. > ----- Original Message ----- > From: "John Carter" <joh...@ta...> [...] > > Autoconf enable/disable feature? > > configure --enable-pretty-function --enable-emacs-support I would vote for making it optional since often the template arguments makes output hard to read. Regards Volker --=20 Volker Boerchers <vbo...@te...> System Engineer TECON Systems AG, Perlengraben 2, 50676 K=F6ln, http://www.tecon.de Tel: +49-221-92007-55, Fax: +49-221-92007-77 |