re: include: Add ONCE macro for making debug output less noisy

2011-01-04 Thread Dan Kegel
Alexandre wrote: >> +#define WINE_ONCE(do_once) ... > > I don't think that buys anything over spelling it out explicitly. It makes it easier to grep for, which might be useful if you want to find all the places it's used to throttle messages that shouldn't be happening in the first place.

Re: include: Add ONCE macro for making debug output less noisy

2011-01-04 Thread Alexandre Julliard
Sven Baars writes: > @@ -250,6 +250,12 @@ static inline const char *wine_dbgstr_longlong( > ULONGLONG ll ) > #define WINE_DPRINTF wine_dbg_printf > #define WINE_MESSAGE wine_dbg_printf > > +#define WINE_ONCE(do_once) \ > +do{ static int wine_once_var; \ > +