logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

OOXML: Debugging macros in oox module: msg#00020

Subject: OOXML: Debugging macros in oox module
Hi,

Please note:
The oox module is independent from the tools module, so using anything from tools is forbidden. Especially the DBG_ASSERT/DBG_ERROR debug macros from tools/debug.hxx, which expand to nothing in release builds, but cause a linker error in debug builds. Please use instead:


#include <tools/debug.hxx>  -->  #include <osl/diagnose.h>

DBG_ASSERT( condition, "text" )  -->  OSL_ENSURE( condition, "text" )

DBG_ERROR( "text" )  -->  OSL_ENSURE( false, "text" )


Regards
Daniel


<Prev in Thread] Current Thread [Next in Thread>