itpp_sci  1.0.0
it++ based simulation framework for scicoslab, scilab and scipy
__debug.h
1 /*xxx
2 * \brief - define C-like debug_1, debug_2, debug_3
3 * \author maki
4 */
5 
6 
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10 
11 #ifndef _ITPP_SCI_DEBUG_H
12 #define _ITPP_SCI_DEBUG_H
13 
14 #include <stdio.h>
15 
16 #include "__debug_level.h"
17 
18 #if (DEBUG_LEVEL>=1)
19 #define debug_1(...) printf(__VA_ARGS__)
20 #else
21 #define debug_1(...)
22 #endif
23 
24 #if (DEBUG_LEVEL>=2)
25 #define debug_2(...) printf(__VA_ARGS__)
26 #else
27 #define debug_2
28 #endif
29 
30 #if (DEBUG_LEVEL>=3)
31 #define debug_3(...) printf(__VA_ARGS__)
32 #else
33 #define debug_3
34 #endif
35 
36 #endif // #ifndef SCI_DEBUG_H
37 
38 #ifdef __cplusplus
39 }
40 #endif