On Tue, Jul 04, 2006 at 09:46:48AM +0200, Jean-Marc Lasgouttes wrote:
> >>>>> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes:
> 
> Lars> This patch speeds up the scroll-down test by and odd second or
> Lars> two for me. Do others see the same? I guess it cannot do any
> Lars> harm, so committing.
> 
> Isn't it possible to do this in a more compact way? If we use macros,
> we can do
> 
> #define LYXERR(flag) if (lyxerr.debugging(flag)) lyxerr

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

would behave slightly nicer in nested if/else, apart from that I think
this is one of the few cases where macros are indeed hlpful.

Andre'

Reply via email to