Re: [Libreoffice] fighting with debug macros...

2010-12-08 Thread Miklos Vajna
On Wed, Dec 08, 2010 at 03:34:50PM +0100, Pierre-André Jacquod wrote: > include /ure/sal/inc/osl/diagnose.h in file, and use only OSL_Debug > macros loosing all messages? Is it possible to add an additional > OSL_ASSERT(condition, message) macro? Or not wanted? We already have OSL_ENSURE() for t

[Libreoffice] fighting with debug macros...

2010-12-08 Thread Pierre-André Jacquod
Hello, still trying to learn a bit the code. Compiling without DEBUG on gives some new warnings:- ) This lead me to look at some code construct. Here is in pseudo-code a typical construct I am crossing: var y = ; var x = ; code if ( y > MAXVALUE) { ASSERT(x, "out of range"); // only u