Re: [LyX/master] Separate debug code so that effective only in the debug mode

Pavel Sanda <[email protected]>
Newsgroups gmane.editors.lyx.devel
Message-ID <[email protected]>
On Mon, Apr 06, 2026 at 07:56:19AM +0000, Koji Yokota wrote:
> commit 1261b40bdc489022506c8b90d810de66e1e921b6
> Author: Koji Yokota <[email protected]>
> Date:   Mon Apr 6 14:22:53 2026 +0900
> 
>     Separate debug code so that effective only in the debug mode
...

> @@ -99,9 +101,11 @@ GuiInputMethod::GuiInputMethod(GuiWorkArea *parent)
>  	d->buffer_view_ = &d->work_area_->bufferView();
>  	d->cur_ = &d->buffer_view_->cursor();
>  
> +#ifdef _DEBUG
>  	LYXERR(Debug::DEBUG, "GuiInputMethod: Address of parent: " << parent);
>  	LYXERR(Debug::DEBUG, "GuiInputMethod: Address of buffer_view_: " <<
>  	       &d->work_area_->bufferView());
> +#endif

Should not these messages bind rather to 
Debug::key instead of generic DEBUG level?

Pavel
-- 
lyx-devel mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.