On 10/6/21 10:45, David K. wrote:
This trick only occurs once. Haven't seen this anywhere else in the code. Why this specific function?
Don't you people suppose other code might benefit from this?
It exists in plenty of other places. A simple grep for 'fixme_written' yields another result, and the more usual 'static (unsigned) int once' yields many.
(Perhaps we should borrow vkd3d's FIXME_ONCE macro...)