rnd-20001204-1-src
[rocksndiamonds.git] / src / libgame / types.h
1 /***********************************************************
2 * Artsoft Retro-Game Library                               *
3 *----------------------------------------------------------*
4 * (c) 1994-2000 Artsoft Entertainment                      *
5 *               Holger Schemel                             *
6 *               Detmolder Strasse 189                      *
7 *               33604 Bielefeld                            *
8 *               Germany                                    *
9 *               e-mail: info@artsoft.org                   *
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 */