Standard way of printing RECT in trace statements?

Dimitrie O. Paun dpaun at rogers.com
Fri Dec 27 10:28:47 CST 2002


On December 26, 2002 12:14 am, Dan Kegel wrote:
> Example use:
>      TRACE("Combo client " _RECT_FMT ", setting Edit to " _RECT_FMT "\n",
>            _RECT_ARG(rect), x, y, x + w, y + h);

Oh no! It's not too pretty, isn't it? :)

> Although this doesn't hide things as well as the inline function,
> it might have some advantage in size and runtime, since it does
> more of its work at compile time.

I'll bet you a dollar in small change you can not measure a 1% speed 
difference. This code executes in trace mode only, where you don't
care about the speed anyhow. Also, the since difference must be minute
anyhow since the macro approach actually enlarges the strings where
it's used. Not to speak of the aesthetic side of things... :)

-- 
Dimi.




More information about the wine-devel mailing list