ROSE 0.11.145.147
RecursionCounter.h
1#ifndef ROSE_RecursionCounter_H
2#define ROSE_RecursionCounter_H
3
4namespace Rose {
5
24 size_t &depth;
25
26 RecursionCounter(size_t &depth): depth(depth) {
27 ++depth;
28 }
29
31 --depth;
32 }
33};
34
35} // namespace
36
37#endif
The ROSE library.
Track recursion depth in a function.