source:
trunk/IPs/systemC/processor/Morpheo/Common/src/Debug.cpp
@
95
Last change on this file since 95 was 88, checked in by , 16 years ago | |
---|---|
|
|
File size: 528 bytes |
Rev | Line | |
---|---|---|
[82] | 1 | /* |
2 | * $Id: Debug.cpp 88 2008-12-10 18:31:39Z rosiere $ | |
3 | * | |
4 | * [ Description ] | |
5 | * | |
6 | */ | |
7 | ||
[78] | 8 | #include "Common/include/Debug.h" |
[88] | 9 | #include "Common/include/Environment.h" |
[78] | 10 | |
[88] | 11 | namespace morpheo { |
12 | ||
[78] | 13 | static uint32_t _debug_depth = 0; |
14 | ||
[88] | 15 | #undef FUNCTION |
16 | #define FUNCTION "debug_tab" | |
[78] | 17 | std::string debug_tab (void) |
18 | { | |
19 | return std::string(_debug_depth,'\t'); | |
20 | } | |
21 | ||
[88] | 22 | #undef FUNCTION |
23 | #define FUNCTION "debug_tab_inc" | |
[82] | 24 | void debug_tab_inc (void) |
[78] | 25 | { |
[82] | 26 | // _debug_depth ++; |
[78] | 27 | } |
28 | ||
[88] | 29 | #undef FUNCTION |
30 | #define FUNCTION "debug_tab_dec" | |
[82] | 31 | void debug_tab_dec (void) |
[78] | 32 | { |
[82] | 33 | // _debug_depth --; |
[78] | 34 | } |
[88] | 35 | |
36 | }; // end namespace morpheo |
Note: See TracBrowser
for help on using the repository browser.