From kde-core-devel Tue Dec 21 19:03:11 1999 From: Mirko Sucker Date: Tue, 21 Dec 1999 19:03:11 +0000 To: kde-core-devel Subject: Re: RFC: Strategy for integrating the Nana debugging library X-MARC-Message: https://marc.info/?l=kde-core-devel&m=94580346128163 David Faure wrote: > > Me again, sorry, need to add something important : > > kdelibs/nana/L.h contains : > > #ifndef __GNUC__ > error you need gcc for this stuff to work properly > #endif See below in this file, there are the VL.. macros that may be used on non-gcc systems. Anyway, this #error is stupid, since it bails out even if the programmer knows he should not use L(..) for portability. I commented it in KDE CVS. > > Doesn't KDE compile with other compilers than gcc ? IIRC Stephan and others > mentionned it did. > Well it doesn't anymore. :((( > > The sad thing is that this restriction seems related to macros with > var args (can anybody confirm that ?), so kdebug won't be able to show > file and line either, except if we switch to > kDebug(QString("...").arg(...).arg(...)) > (ouch!) to avoid var args. Then we can define kDebug as a macro, calling a > function with __FILE__,__LINE__ as first args. > > In short, nana and kdebug have the same problem (for the line and file > stuff) : > either they can do it and that limits KDE to gcc, or they can't. > :( -- Denn der Mensch liebt und ehrt den Menschen, solange er ihn nicht zu beurteilen vermag, und die Sehnsucht ist ein Erzeugnis mangelhafter Erkenntnis. (Thomas Mann)