From WikiChip
xor_eq macro - <iso646.h> - C
< c‎ | iso646.h
Revision as of 12:40, 4 January 2015 by Inject (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The xor_eq macro, which is part of <iso646.h>, is a convenient object-like macro name that expands to the ^= operator. The macro was added in Normative Addendum 1 in an effort to provide support for international character sets that might not have the ^ symbols.

Synopsis

#include <iso646.h>
#define xor_eq ^=

Description

The xor_eq object-like macro expands to the ^= operator.

Example

#include <iso646.h>

int main ()
{
    int x = 3;
    x xor_eq 1;
    return x;
}