ROSE
0.9.10.2
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
src
util
RecursionCounter.h
1
#ifndef ROSE_RecursionCounter_H
2
3
namespace
Rose {
4
22
struct
RecursionCounter
{
23
size_t
&depth;
24
25
RecursionCounter
(
size_t
&depth): depth(depth) {
26
++depth;
27
}
28
29
~
RecursionCounter
() {
30
--depth;
31
}
32
};
33
34
}
// namespace
35
36
#endif
Rose::RecursionCounter
Track recursion depth in a function.
Definition:
RecursionCounter.h:22
Generated on Thu Apr 19 2018 04:53:46 for ROSE by
1.8.5