| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
#include |
|
2
|
|
|
|
|
|
|
#include |
|
3
|
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
using namespace xs; |
|
5
|
|
|
|
|
|
|
using namespace panda; |
|
6
|
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
|
|
8
|
2
|
|
|
|
|
|
template static inline void fn_1() { |
|
9
|
2
|
|
|
|
|
|
throw panda::exception("my-error"); |
|
10
|
|
|
|
|
|
|
} |
|
11
|
|
|
|
|
|
|
|
|
12
|
2
|
|
|
|
|
|
template static inline void fn_2() { |
|
13
|
2
|
|
|
|
|
|
fn_1(); |
|
14
|
0
|
|
|
|
|
|
} |
|
15
|
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
MODULE = MyTest PACKAGE = MyTest |
|
17
|
|
|
|
|
|
|
PROTOTYPES: DISABLE |
|
18
|
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
size_t default_trace_depth() { |
|
20
|
3
|
|
|
|
|
|
RETVAL = Backtrace().get_backtrace_info()->frames.size(); |
|
21
|
|
|
|
|
|
|
} |
|
22
|
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
void call(Sub cb) { |
|
24
|
1
|
50
|
|
|
|
|
cb(); |
|
25
|
|
|
|
|
|
|
} |
|
26
|
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
void throw_logic_error() { |
|
28
|
1
|
50
|
|
|
|
|
throw std::logic_error("my-logic-error"); |
|
29
|
|
|
|
|
|
|
} |
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
void throw_backtrace() { |
|
32
|
2
|
|
|
|
|
|
auto fn = []() { fn_2(); }; |
|
33
|
2
|
50
|
|
|
|
|
fn(); |
|
34
|
|
|
|
|
|
|
} |
|
35
|
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
void throw_with_newline() { |
|
37
|
1
|
50
|
|
|
|
|
throw std::logic_error("my-error\n"); |
|
38
|
|
|
|
|
|
|
} |