]> git.lyx.org Git - features.git/commit
InsetIndex: hide printTree behind a LYX_INSET_INDEX_DEBUG flag
authorThibaut Cuvelier <tcuvelier@lyx.org>
Mon, 31 Oct 2022 22:57:41 +0000 (23:57 +0100)
committerThibaut Cuvelier <tcuvelier@lyx.org>
Mon, 31 Oct 2022 23:00:37 +0000 (00:00 +0100)
commit3bf1b97ae547aea5d0243e41b2d8af463a6e40c5
treef99e06067accc39e19075bca56497966dc7abcc7
parent6f7b39f84299660586b0485713d9672279ebe226
InsetIndex: hide printTree behind a LYX_INSET_INDEX_DEBUG flag

The change ensures that the function is not seen by the compiler when
the debug mode is not enabled. The flag is not set by default, because
it might have a significant performance impact for large indices.

The reason for the flag is that the default configuration under Linux
forbids the definition of unused functions.
src/insets/InsetIndex.cpp