Re: [Libreoffice] OSL_FORMAT: printf-style assertion messages

2011-10-17 Thread Michael Meeks
Hi Stephan, On Mon, 2011-10-17 at 15:57 +0200, Stephan Bergmann wrote: > 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 .. > OSL_ENSURE(i == 5, OSL_FORMAT("i should be 5 but is %d", i)); Lovel

[Libreoffice] OSL_FORMAT: printf-style assertion messages

2011-10-17 Thread Stephan Bergmann
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 ___ LibreOffice mailing li