[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: RFC: Strategy for integrating the Nana debugging library
From:       Mirko Sucker <mirko.sucker () unibw-hamburg ! de>
Date:       1999-12-21 19:03:11
[Download RAW message or body]

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)

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic