X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=includes%2Fiso646.h;fp=includes%2Fiso646.h;h=cc8be74abab17a9734943f9b3f21b0d8848595f6;hb=1e221deb9ee725a14b3656f94e2763f8faeb18dc;hp=0000000000000000000000000000000000000000;hpb=9712362f98b90c1a2aeec9fd877b0b872b6378c7;p=pdclib diff --git a/includes/iso646.h b/includes/iso646.h new file mode 100644 index 0000000..cc8be74 --- /dev/null +++ b/includes/iso646.h @@ -0,0 +1,32 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- +// Provides "readable" aliases for bit operators. +// ---------------------------------------------------------------------------- + +#ifndef __ISO646_H +#define __ISO646_H __ISO646_H + +// ---------------------------------------------------------------------------- +// DEFINES + +#ifndef __cplusplus + +#define and && +#define and_eq &= +#define bitand & +#define bitor | +#define compl ~ +#define not ! +#define not_eq != +#define or || +#define or_eq |= +#define xor ^ +#define xor_eq ^= + +#endif // __cplusplus + +#endif // __ISO646_H