ToggleBit

Category: Arithmetics
Since engine version: 1.0 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
See also: GetBit, SetBit
Newton, 2009-07