line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
MODE: INLINE |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
using MyBaseAV = _MyBase<2>; |
4
|
|
|
|
|
|
|
using MyBaseHV = _MyBase<3>; |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
namespace xs { |
7
|
|
|
|
|
|
|
template <> struct Typemap : TypemapObject { |
8
|
|
|
|
|
|
|
static std::string package () { return "MyTest::MyBaseAV"; } |
9
|
|
|
|
|
|
|
}; |
10
|
|
|
|
|
|
|
template <> struct Typemap : TypemapObject { |
11
|
|
|
|
|
|
|
static std::string package () { return "MyTest::MyBaseHV"; } |
12
|
|
|
|
|
|
|
}; |
13
|
|
|
|
|
|
|
} |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
MODULE = MyTest::Typemap::Object PACKAGE = MyTest::MyBaseAV |
16
|
|
|
|
|
|
|
PROTOTYPES: DISABLE |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
MyBaseAV* new (SV*, int arg) { |
19
|
3
|
|
|
|
|
|
if (!arg) XSRETURN_UNDEF; |
20
|
2
|
100
|
|
|
|
|
RETVAL = new MyBaseAV(arg); |
21
|
1
|
50
|
|
|
|
|
PROTO = Array::create(); |
22
|
1
|
50
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
int MyBaseAV::val () { |
25
|
1
|
|
|
|
|
|
RETVAL = THIS->val; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
void MyBaseAV::DESTROY () { |
29
|
1
|
|
|
|
|
|
dcnt.perl++; |
30
|
1
|
50
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
MODULE = MyTest::Typemap::Object PACKAGE = MyTest::MyBaseHV |
33
|
|
|
|
|
|
|
PROTOTYPES: DISABLE |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
MyBaseHV* new (SV*, int arg) { |
36
|
3
|
|
|
|
|
|
if (!arg) XSRETURN_UNDEF; |
37
|
2
|
100
|
|
|
|
|
RETVAL = new MyBaseHV(arg); |
38
|
1
|
50
|
|
|
|
|
PROTO = Hash::create(); |
39
|
1
|
50
|
|
|
|
|
} |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
int MyBaseHV::val () { |
42
|
1
|
|
|
|
|
|
RETVAL = THIS->val; |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
void MyBaseHV::DESTROY () { |
46
|
1
|
|
|
|
|
|
dcnt.perl++; |
47
|
1
|
50
|
|
|
|
|
} |