Closed ethteck closed 2 years ago
This PR makes flag checks briefer and more in line with how projects tend to actually write this code: (flagVar & 0x100) == 0 becomes !(flagVar & 0x100) (flagVar & 0x100) != 0 becomes (flagVar & 0x100)
(flagVar & 0x100) == 0
!(flagVar & 0x100)
(flagVar & 0x100) != 0
(flagVar & 0x100)
I implemented the paren handling I mentioned above, but the way I did it and the scope might not be ideal. lmk what you think
This PR makes flag checks briefer and more in line with how projects tend to actually write this code:
(flagVar & 0x100) == 0
becomes!(flagVar & 0x100)
(flagVar & 0x100) != 0
becomes(flagVar & 0x100)