]> pd.if.org Git - pdclib/blob - includes/iso646.h
Initial load with header templates and some first declarations.
[pdclib] / includes / iso646.h
1 // ----------------------------------------------------------------------------
2 // $Id$
3 // ----------------------------------------------------------------------------
4 // Public Domain C Library - http://pdclib.sourceforge.net
5 // This code is Public Domain. Use, modify, and redistribute at will.
6 // ----------------------------------------------------------------------------
7 // Provides "readable" aliases for bit operators.
8 // ----------------------------------------------------------------------------
9
10 #ifndef __ISO646_H
11 #define __ISO646_H __ISO646_H
12
13 // ----------------------------------------------------------------------------
14 // DEFINES
15
16 #ifndef __cplusplus
17
18 #define and &&
19 #define and_eq &=
20 #define bitand &
21 #define bitor |
22 #define compl ~
23 #define not !
24 #define not_eq !=
25 #define or ||
26 #define or_eq |=
27 #define xor ^
28 #define xor_eq ^=
29
30 #endif // __cplusplus
31
32 #endif // __ISO646_H