windows: wrapped inversion macro with do..while(0)