Printing fixme's once (was: Re: GSoC-2011: Implement Missing Mesh Functions in Wine’s D3DX9)

Dan Kegel dank at
Sat Aug 6 15:52:30 CDT 2011

Stefan wrote:
> I think there was once a discussion about a FIXME_ONCE macro that took care of this. not sure what happened with that idea.

Judging by,
Alexandre's preferred idiom is
     static BOOL fixme_once;
     if(!fixme_once++) FIXME("Report bug to Aunt Tilly\n");

It occurs to me that
#define WINE_ONCE(s) { static int once; if (!once++) s; }
might suffice; you could then write
     WINE_ONCE(FIXME("Report bug to Aunt Tilly\n"));

The previous attempt was more complicated:
- Dan

More information about the wine-devel mailing list