>>>>> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes:
Andre> I want to put
Andre> #define LYXERR(type, s) \ do { if
Andre> (lyxerr.debugging(Debug::type)) lyxerr << s << std::endl; }
Andre> while (0)
I'd prefer something that looks more like a stream like
#define LYXERR(type) if (!lyxerr.debugging(type)) else lyxerr
(or some alternative that actually works) and do
- lyxerr[Debug::MATHED] << "inset " << to_utf8(tmp.inset)
- << " used for " << to_utf8(tmp.name)
- << endl;
+ LYXERR(Debug::MATHED) << "inset " << to_utf8(tmp.inset)
+ << " used for " << to_utf8(tmp.name))
+ << endl;
I think the extra characters to type are worth the effort.
JMarc