>>>>> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes:

Georg> It is IMO a nice solution for outputting simple stuff without
Georg> plastering the code with if(). The problem it has is that the
Georg> right hand side is always computed, even if the output is
Georg> discarded. But if one keeps that in mind it is a good debug
Georg> utility.

Providing Asger can back up his claim with evidence, it may be time to
try the preprocessor trick I proposed some time ago:

#define LYXERR(flag) if (lyxerr.debugging(flag)) lyxerr 

or maybe (to avoid problems with nested ifs)

#define LYXERR(flag) if (!lyxerr.debugging(flag)); else lyxerr 

Then LYXERR(Debug::PAINTING) << foo << bar will do the right thing.

JMarc

Reply via email to