ToggleBit
Category: Arithmetics
Since engine version: 5.1 OC
Description
Returns the new bit masc with the bit at the indicated position flipped
Syntax
int ToggleBit(int old_value, int bit_number);
Parameters
- old_value:
Old value of the bit masc
- bit_number:
The bit to flip
Newton, 2009-07