[Libreoffice] OSL_FORMAT: printf-style assertion messages

Stephan Bergmann sbergman at redhat.com
Mon Oct 17 06:57:03 PDT 2011


FYI, recently added OSL_FORMAT to ols/diagnose.h that lets you have 
printf-style messages in C++ OSL_ENSURE, OSL_FAIL, DBG_ASSERT, etc.  To 
be used a la

OSL_ENSURE(i == 5, OSL_FORMAT("i should be 5 but is %d", i));

-Stephan


More information about the LibreOffice mailing list