Re: [rfc] WINE_ONCE macro

2011-08-09 Thread Massimo Del Fedele
I introduced exactly the same on my old DIB engine, to avoid tons of FIXMES :-) I find it quite useful. Max

Re: [rfc] WINE_ONCE macro

2011-08-06 Thread Dan Kegel
On Sat, Aug 6, 2011 at 2:58 PM, Sven Baars wrote: > Alexandre turned it down last time: > > http://www.winehq.org/pipermail/wine-devel/2011-January/088123.html Ah, foo, now I remember. Thanks... - Dan

Re: [rfc] WINE_ONCE macro

2011-08-06 Thread Sven Baars
On 06-08-2011 at 11:12 PM, Dan Kegel wrote: There are many places in the wine source that use a static to print a fixme just once. Here's a simple macro that combines declaring and testing the static. Thoughts? Hi Dan, Alexandre turned it down last time: http://www.winehq.org/pipermail/wine

[rfc] WINE_ONCE macro

2011-08-06 Thread Dan Kegel
There are many places in the wine source that use a static to print a fixme just once. Here's a simple macro that combines declaring and testing the static. Thoughts? diff --git a/include/wine/debug.h b/include/wine/debug.h index ba6fabe..3112401 100644 --- a/include/wine/debug.h +++ b/include/w