Related tdf#162279: rather use OSL_DEBUG_LEVEL instead of NDEBUG

Following Stephan's suggestion.

Change-Id: Iaeb7192129d83471aa0a32e7adb272a14e80ff71
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179703
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
This commit is contained in:
Julien Nabet
2025-01-03 15:38:01 +01:00
parent f4a3ffe111
commit 068fef40d3

View File

@@ -2818,7 +2818,7 @@ void ExceptionType::dumpHdlFile(
{
if (name_ == "com.sun.star.uno.Exception")
{
includes.addCustom(u"#if defined(LIBO_INTERNAL_ONLY) && !defined(NDEBUG)"_ustr);
includes.addCustom(u"#if defined(LIBO_INTERNAL_ONLY) && OSL_DEBUG_LEVEL > 0"_ustr);
includes.addCustom(u"#include <o3tl/source_location.hxx>"_ustr);
includes.addCustom(u"#endif"_ustr);
includes.addCustom(u"#if defined LIBO_USE_SOURCE_LOCATION"_ustr);