On Sat, Aug 6, 2011 at 7:59 PM, Stefan Dösinger stefandoesinger@gmx.at wrote:
Btw. those FIXMEs might produce a lot of messages (one per vertex). Is there good way to limit the number of messages?
A common way is something like this
{ static BOOL once = false; if (!once) { FIXME("Report this bug to my aunt Tilda please\n"); once = TRUE; } }
I think there was once a discussion about a FIXME_ONCE macro that took care of this. not sure what happened with that idea.
I've sorta followed Dan's suggestion to use Alexandre's style, except that I have multiple fixme_once variables. Any idea if this would be acceptable?
Another solution could be to check the vertex declaration before running the welding algorithm and print the FIXMEs there. But that would decouple the location of where the problem is from the printout, which could be confusing during debugging.