]>
Commit | Line | Data |
---|---|---|
77970e15 | 1 | #ifndef BOOL_H |
2 | #define BOOL_H | |
3 | ||
4 | #ifndef FALSE | |
5 | #define FALSE 0 | |
6 | #endif | |
7 | ||
8 | #ifndef TRUE | |
9 | #define TRUE (! FALSE) | |
10 | #endif | |
11 | ||
12 | typedef int bool; | |
13 | ||
14 | # define bool_initMod() | |
15 | # define bool_unparse(b) ((b) ? "true" : "false" ) | |
16 | # define bool_not(b) ((b) ? FALSE : TRUE) | |
17 | # define bool_equal(a,b) ((a) ? (b) : !(b)) | |
18 | ||
19 | # endif |