]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lib.git/blob - rpp/include/base.h
Merge branch 'master' of rtime.felk.cvut.cz:pes-rpp/rpp-lib
[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 "types.h"
16 #include "binary.h"
17 #include "os/os.h"
18
19 // General IO directives
20 /**
21  * Maximum length of system buffers.
22  */
23 #define MAX_BUFFER_LEN 1024
24
25
26 // Debug directives
27 /**
28  * Macro to mark unused variables.
29  */
30 #define UNUSED(x) (void)(x)
31
32 /**
33  * General debug directive.
34  */
35 //#define DEBUG // - defined in preprocessor's Predefined symbols
36
37 #ifdef DEBUG
38 /**
39  * Macro to mark debug statements.
40  */
41 #  define D(x) x
42 #else
43 #  define D(x)
44 #endif
45
46 #endif /* __BASE_H */