On 06/16/2010 04:48 PM, Dan Kegel wrote:
Max wrote:
[Maybe we should modify FIXME itself to only print out once.]
That's worth discussing, but changing FIXME itself might be going a bit too far during the current code freeze. You could try adding a FIXME_ONCE macro, though, and use it to quiet some particular message that really gets in the way of (i.e. slows down) a real application.
Something along the lines of?
#define FIXME_ONCE(...) \ do { static volatile unsigned char once = 0U; \ if ( once == 0U ) { /* The race here is ignorable. */ \ once = ^0U; \ FIXME(__VA_ARGS__); \ } \ } while(0)