From 068fef40d39b24a7f7ef1142e45cb3e7dcc9fb08 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Fri, 3 Jan 2025 15:38:01 +0100 Subject: [PATCH] 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 --- codemaker/source/cppumaker/cpputype.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codemaker/source/cppumaker/cpputype.cxx b/codemaker/source/cppumaker/cpputype.cxx index aa332fb026e7..24846d054347 100644 --- a/codemaker/source/cppumaker/cpputype.cxx +++ b/codemaker/source/cppumaker/cpputype.cxx @@ -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 "_ustr); includes.addCustom(u"#endif"_ustr); includes.addCustom(u"#if defined LIBO_USE_SOURCE_LOCATION"_ustr);