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