]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lib.git/blob - rpp/include/base.h
Improved documentation of several files.
[pes-rpp/rpp-lib.git] / rpp / include / base.h
1 /**
2  * Base common includes to all RPP library.
3  *
4  * @file base.h
5  *
6  * @copyright Copyright (C) 2013 Czech Technical University in Prague
7  *
8  * @author Carlos Jenkins <carlos@jenkins.co.cr>
9  */
10
11 #ifndef __BASE_H
12 #define __BASE_H
13
14 // Base includes
15 #include "os/os.h"
16 #include "types.h"
17 #include "binary.h"
18
19
20 // General IO directives
21 /**
22  * Maximum length of system buffers.
23  */
24 #define MAX_BUFFER_LEN 128
25
26
27 // Debug directives
28 /**
29  * Macro to mark unused variables.
30  */
31 #define UNUSED(x) (void)(x)
32
33 /**
34  * General debug directive.
35  */
36 #define DEBUG
37
38 #ifdef DEBUG
39 /**
40  * Macro to mark debug statements.
41  */
42 #  define D(x) x
43 #else
44 #  define D(x)
45 #endif
46
47 #endif /* __BASE_H */