Documentation Project 1
ContentsIndexHome
PreviousUpNext
sack::TOGGLEFLAG Macro
C++
#define TOGGLEFLAG(v,n) ( (v)[(n)/FLAGTYPEBITS((v)[0])] ^= 1 << ( (n) & FLAGROUND((v)[0]) ))

reverse a flag from 1 to 0 and vice versa

Copyright (c) 2010. All rights reserved.
What do you think about this topic? Send feedback!