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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user