rnd-20001203-3-src
[rocksndiamonds.git] / src / libgame / types.h
1 /***********************************************************
2 *  Rocks'n'Diamonds -- McDuffin Strikes Back!              *
3 *----------------------------------------------------------*
4 *  (c) 1995-98 Artsoft Entertainment                       *
5 *              Holger Schemel                              *
6 *              Oststrasse 11a                              *
7 *              33604 Bielefeld                             *
8 *              phone: ++49 +521 290471                     *
9 *              email: aeglos@valinor.owl.de                *
10 *----------------------------------------------------------*
11 *  types.h                                                 *
12 ***********************************************************/
13
14 #ifndef TYPES_H
15 #define TYPES_H
16
17 typedef unsigned char boolean;
18 typedef unsigned char byte;
19
20 #ifndef FALSE
21 #define FALSE           0
22 #define TRUE            (!FALSE)
23 #endif
24
25 #ifndef MIN
26 #define MIN(a,b)        ((a) < (b) ? (a) : (b))
27 #endif
28
29 #ifndef MAX
30 #define MAX(a,b)        ((a) > (b) ? (a) : (b))
31 #endif
32
33 #ifndef ABS
34 #define ABS(a)          ((a) < 0 ? -(a) : (a))
35 #endif
36
37 #ifndef SIGN
38 #define SIGN(a)         ((a) < 0 ? -1 : ((a)>0 ? 1 : 0))
39 #endif
40
41 #endif /* TYPES_H */