t/typemap/object/refcnt.xsi

filter: Statementstmt 100% 112 / 112 Branchbran 45.6% 115 / 252 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 62.3% 227 / 364 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« t/typemap/not_null.xsi ↑ Summary src/xs/typemap/error.cc »
1 MODE: INLINE
2  
3 template <int i>
4 class _MyRefCounted : public panda::Refcnt {
5 public:
6 int val;
7 _MyRefCounted (int val) : val(val) { }
8 virtual ~_MyRefCounted () {
9 dcnt.c++;
10 }
11 };
12  
13 template <int i>
14 class _MyRefCountedChild : public _MyRefCounted<i> {
15 public:
16 int val2;
17 _MyRefCountedChild (int val, int val2) : _MyRefCounted<i>(val), val2(val2) { }
18 virtual ~_MyRefCountedChild () {
19 dcnt.c++;
20 }
21 };
22  
23 using MyRefCounted = _MyRefCounted<0>;
24 using MyRefCountedChild = _MyRefCountedChild<0>;
25 using MyRefCountedIPTR = panda::iptr<MyRefCounted>;
26 using MyRefCountedChildIPTR = panda::iptr<MyRefCountedChild>;
27 using PTRMyRefCounted = _MyRefCounted<1>;
28 using PTRMyRefCountedChild = _MyRefCountedChild<1>;
29 using PTRMyRefCountedIPTR = panda::iptr<PTRMyRefCounted>;
30 using PTRMyRefCountedChildIPTR = panda::iptr<PTRMyRefCountedChild>;
31  
32 static MyRefCounted* st_myrefcounted;
33 static PTRMyRefCounted* st_ptr_myrefcounted;
34 static MyRefCountedIPTR st_myrefcounted_iptr;
35 static PTRMyRefCountedIPTR st_ptr_myrefcounted_iptr;
36  
37 using MyBaseSP = std::shared_ptr<MyBase>;
38 using MyChildSP = std::shared_ptr<MyChild>;
39 using PTRMyBaseSP = std::shared_ptr<PTRMyBase>;
40 using PTRMyChildSP = std::shared_ptr<PTRMyChild>;
41  
42 static MyBaseSP st_mybase_sp;
43 static PTRMyBaseSP st_ptr_mybase_sp;
44  
45 namespace xs {
46 template <class TYPE> struct Typemap<PTRMyRefCounted*,TYPE> : TypemapObject<PTRMyRefCounted*, TYPE, ObjectTypeRefcntPtr, ObjectStorageIV, DynamicCast> {
47 static std::string package () { return "MyTest::PTRMyRefCounted"; }
48 };
49  
50 template <> struct Typemap<PTRMyRefCountedChild*> : Typemap<PTRMyRefCounted*, PTRMyRefCountedChild*> {
51 static std::string package () { return "MyTest::PTRMyRefCountedChild"; }
52 };
53  
54 template <class TYPE> struct Typemap<MyRefCounted*,TYPE> : TypemapObject<MyRefCounted*, TYPE, ObjectTypeRefcntPtr, ObjectStorageMG, DynamicCast> {
55 static std::string package () { return "MyTest::MyRefCounted"; }
56 };
57  
58 template <> struct Typemap<MyRefCountedChild*> : Typemap<MyRefCounted*, MyRefCountedChild*> {
59 static std::string package () { return "MyTest::MyRefCountedChild"; }
60 };
61  
62 template <class TYPE> struct Typemap<PTRMyBaseSP,TYPE> : TypemapObject<PTRMyBaseSP, TYPE, ObjectTypeSharedPtr, ObjectStorageIV, DynamicCast> {
63 static std::string package () { return "MyTest::PTRMyBaseSP"; }
64 };
65  
66 template <> struct Typemap<PTRMyChildSP> : Typemap<PTRMyBaseSP, PTRMyChildSP> {
67 static std::string package () { return "MyTest::PTRMyChildSP"; }
68 };
69  
70 template <class TYPE> struct Typemap<MyBaseSP,TYPE> : TypemapObject<MyBaseSP, TYPE, ObjectTypeSharedPtr, ObjectStorageMG, DynamicCast> {
71 static std::string package () { return "MyTest::MyBaseSP"; }
72 static MyBaseSP dup (const MyBaseSP& obj) { return MyBaseSP(obj->clone()); }
73 };
74  
75 template <> struct Typemap<MyChildSP> : Typemap<MyBaseSP, MyChildSP> {
76 static std::string package () { return "MyTest::MyChildSP"; }
77 };
78  
79 }
80  
81 MODULE = MyTest::Typemap::Object PACKAGE = MyTest
82 PROTOTYPES: DISABLE
83  
84 void hold_ptr_myrefcounted (PTRMyRefCounted* obj) {
85 1 obj->retain();
86 1 st_ptr_myrefcounted = obj;
87 }
88  
89 PTRMyRefCounted* release_ptr_myrefcounted () {
90 1 PTRMyRefCountedIPTR autorel(st_ptr_myrefcounted);
91 1 st_ptr_myrefcounted->release();
92 1 RETVAL = st_ptr_myrefcounted;
93 1 ▶}
Branch: 1 branch
BranchTrueFalseTotal
} 1 0 1
94  
95 void hold_myrefcounted (MyRefCounted* obj) {
96 1 obj->retain();
97 1 st_myrefcounted = obj;
98 }
99  
100 MyRefCounted* release_myrefcounted () {
101 1 MyRefCountedIPTR autorel(st_myrefcounted);
102 1 st_myrefcounted->release();
103 1 RETVAL = st_myrefcounted;
104 1 ▶}
Branch: 1 branch
BranchTrueFalseTotal
} 1 0 1
105  
106 void hold_ptr_myrefcounted_iptr (PTRMyRefCountedIPTR obj) {
107 1 ▶ st_ptr_myrefcounted_iptr = obj;
Branch: 1 branch
BranchTrueFalseTotal
st_ptr_myrefcounted_iptr = obj; 1 0 1
108 }
109  
110 PTRMyRefCountedIPTR release_ptr_myrefcounted_iptr () {
111 1 RETVAL = st_ptr_myrefcounted_iptr;
112 1 ▶ st_ptr_myrefcounted_iptr.reset();
Branch: 1 branch
BranchTrueFalseTotal
st_ptr_myrefcounted_iptr.reset(); 1 0 1
113 1 }
114  
115 void hold_myrefcounted_iptr (MyRefCountedIPTR obj) {
116 1 ▶ st_myrefcounted_iptr = obj;
Branch: 1 branch
BranchTrueFalseTotal
st_myrefcounted_iptr = obj; 1 0 1
117 }
118  
119 MyRefCountedIPTR release_myrefcounted_iptr () {
120 1 RETVAL = st_myrefcounted_iptr;
121 1 ▶ st_myrefcounted_iptr.reset();
Branch: 1 branch
BranchTrueFalseTotal
st_myrefcounted_iptr.reset(); 1 0 1
122 1 }
123  
124 void hold_ptr_mybase_sp (PTRMyBaseSP obj) {
125 1 st_ptr_mybase_sp = obj;
126 }
127  
128 PTRMyBaseSP release_ptr_mybase_sp () {
129 1 RETVAL = st_ptr_mybase_sp;
130 1 st_ptr_mybase_sp.reset();
131 1 }
132  
133 void hold_mybase_sp (MyBaseSP obj) {
134 1 st_mybase_sp = obj;
135 }
136  
137 MyBaseSP release_mybase_sp () {
138 1 RETVAL = st_mybase_sp;
139 1 st_mybase_sp.reset();
140 1 }
141  
142  
143  
144 MODULE = MyTest::Typemap::Object PACKAGE = MyTest::PTRMyRefCounted
145 PROTOTYPES: DISABLE
146  
147 2 PTRMyRefCounted* PTRMyRefCounted::new (int val)
148 2 ▶ 
Branch: 1 branch
BranchTrueFalseTotal
2 0 2
149 2 ▶int PTRMyRefCounted::val () {
Branch: 4 branches
BranchTrueFalseTotal
int PTRMyRefCounted::val () { 2 0 2
int PTRMyRefCounted::val () { 2 0 2
int PTRMyRefCounted::val () { 2 0 2
int PTRMyRefCounted::val () { 0 0 0
150 5 ▶ RETVAL = THIS->val;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = THIS->val; 1 4 5
151 }
152  
153 5 void PTRMyRefCounted::DESTROY () { dcnt.perl++; }
154 5 ▶ 
Branch: 1 branch
BranchTrueFalseTotal
5 0 5
155  
156  
157 MODULE = MyTest::Typemap::Object PACKAGE = MyTest::PTRMyRefCountedChild
158 PROTOTYPES: DISABLE
159  
160 BOOT {
161 35 ▶ Stash("MyTest::PTRMyRefCountedChild").inherit(Stash("MyTest::PTRMyRefCounted"));
Branch: 3 branches
BranchTrueFalseTotal
Stash("MyTest::PTRMyRefCountedChild").inherit(Stash("MyTest::PTRMyRefCounted")); 35 0 35
Stash("MyTest::PTRMyRefCountedChild").inherit(Stash("MyTest::PTRMyRefCounted")); 35 0 35
Stash("MyTest::PTRMyRefCountedChild").inherit(Stash("MyTest::PTRMyRefCounted")); 35 0 35
162 }
163  
164 1 PTRMyRefCountedChild* PTRMyRefCountedChild::new (int val, int val2)
165 1 ▶ 
Branch: 1 branch
BranchTrueFalseTotal
1 0 1
166 1 ▶int PTRMyRefCountedChild::val2 () {
Branch: 4 branches
BranchTrueFalseTotal
int PTRMyRefCountedChild::val2 () { 1 0 1
int PTRMyRefCountedChild::val2 () { 1 0 1
int PTRMyRefCountedChild::val2 () { 1 0 1
int PTRMyRefCountedChild::val2 () { 0 0 0
167 1 ▶ RETVAL = THIS->val2;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = THIS->val2; 0 1 1
168 }
169  
170 void PTRMyRefCountedChild::DESTROY () {
171 1 dcnt.perl++;
172 1 ▶ Sub(cv).SUPER().call(&ST(0), items);
Branch: 3 branches
BranchTrueFalseTotal
Sub(cv).SUPER().call(&ST(0), items); 1 0 1
Sub(cv).SUPER().call(&ST(0), items); 1 0 1
Sub(cv).SUPER().call(&ST(0), items); 1 0 1
173 1 ▶}
Branch: 1 branch
BranchTrueFalseTotal
} 1 0 1
174  
175  
176  
177 MODULE = MyTest::Typemap::Object PACKAGE = MyTest::MyRefCounted
178 PROTOTYPES: DISABLE
179  
180 2 MyRefCounted* MyRefCounted::new (int val)
181 2 ▶ 
Branch: 1 branch
BranchTrueFalseTotal
2 0 2
182 2 ▶int MyRefCounted::val () {
Branch: 4 branches
BranchTrueFalseTotal
int MyRefCounted::val () { 2 0 2
int MyRefCounted::val () { 2 0 2
int MyRefCounted::val () { 2 0 2
int MyRefCounted::val () { 0 0 0
183 5 ▶ RETVAL = THIS->val;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = THIS->val; 5 0 5
184 }
185  
186 5 void MyRefCounted::DESTROY () { dcnt.perl++; }
187 5 ▶ 
Branch: 1 branch
BranchTrueFalseTotal
5 0 5
188  
189  
190 MODULE = MyTest::Typemap::Object PACKAGE = MyTest::MyRefCountedChild
191 PROTOTYPES: DISABLE
192  
193 BOOT {
194 35 ▶ Stash("MyTest::MyRefCountedChild").inherit(Stash("MyTest::MyRefCounted"));
Branch: 3 branches
BranchTrueFalseTotal
Stash("MyTest::MyRefCountedChild").inherit(Stash("MyTest::MyRefCounted")); 35 0 35
Stash("MyTest::MyRefCountedChild").inherit(Stash("MyTest::MyRefCounted")); 35 0 35
Stash("MyTest::MyRefCountedChild").inherit(Stash("MyTest::MyRefCounted")); 35 0 35
195 }
196  
197 1 MyRefCountedChild* MyRefCountedChild::new (int val, int val2)
198 1 ▶ 
Branch: 1 branch
BranchTrueFalseTotal
1 0 1
199 1 ▶int MyRefCountedChild::val2 () {
Branch: 4 branches
BranchTrueFalseTotal
int MyRefCountedChild::val2 () { 1 0 1
int MyRefCountedChild::val2 () { 1 0 1
int MyRefCountedChild::val2 () { 1 0 1
int MyRefCountedChild::val2 () { 0 0 0
200 1 ▶ RETVAL = THIS->val2;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = THIS->val2; 1 0 1
201 }
202  
203 void MyRefCountedChild::DESTROY () {
204 1 dcnt.perl++;
205 1 ▶ Sub(cv).SUPER().call(&ST(0), items);
Branch: 3 branches
BranchTrueFalseTotal
Sub(cv).SUPER().call(&ST(0), items); 1 0 1
Sub(cv).SUPER().call(&ST(0), items); 1 0 1
Sub(cv).SUPER().call(&ST(0), items); 1 0 1
206 1 ▶}
Branch: 1 branch
BranchTrueFalseTotal
} 1 0 1
207  
208  
209  
210 MODULE = MyTest::Typemap::Object PACKAGE = MyTest::PTRMyRefCountedIPTR
211 PROTOTYPES: DISABLE
212  
213 2 PTRMyRefCountedIPTR PTRMyRefCounted::new (int val)
214 2 ▶ 
Branch: 1 branch
BranchTrueFalseTotal
2 0 2
215 2 ▶int val (PTRMyRefCountedIPTR THIS) {
Branch: 4 branches
BranchTrueFalseTotal
int val (PTRMyRefCountedIPTR THIS) { 2 0 2
int val (PTRMyRefCountedIPTR THIS) { 2 0 2
int val (PTRMyRefCountedIPTR THIS) { 2 0 2
int val (PTRMyRefCountedIPTR THIS) { 0 0 0
216 3 ▶ RETVAL = THIS->val;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = THIS->val; 3 0 3
217 }
218  
219 3 void DESTROY (PTRMyRefCountedIPTR THIS) { dcnt.perl++; }
220 3 ▶ 
Branch: 1 branch
BranchTrueFalseTotal
3 0 3
221  
222  
223 MODULE = MyTest::Typemap::Object PACKAGE = MyTest::PTRMyRefCountedChildIPTR
224 PROTOTYPES: DISABLE
225  
226 BOOT {
227 35 ▶ Stash("MyTest::PTRMyRefCountedChildIPTR").inherit(Stash("MyTest::PTRMyRefCountedIPTR"));
Branch: 3 branches
BranchTrueFalseTotal
Stash("MyTest::PTRMyRefCountedChildIPTR").inherit(Stash("MyTest::PTRMyRefCountedIPTR")); 35 0 35
Stash("MyTest::PTRMyRefCountedChildIPTR").inherit(Stash("MyTest::PTRMyRefCountedIPTR")); 35 0 35
Stash("MyTest::PTRMyRefCountedChildIPTR").inherit(Stash("MyTest::PTRMyRefCountedIPTR")); 35 0 35
228 }
229  
230 1 PTRMyRefCountedChildIPTR PTRMyRefCountedChild::new (int val, int val2)
231 1 ▶ 
Branch: 1 branch
BranchTrueFalseTotal
1 0 1
232 1 ▶int val2 (PTRMyRefCountedChildIPTR THIS) {
Branch: 4 branches
BranchTrueFalseTotal
int val2 (PTRMyRefCountedChildIPTR THIS) { 1 0 1
int val2 (PTRMyRefCountedChildIPTR THIS) { 1 0 1
int val2 (PTRMyRefCountedChildIPTR THIS) { 1 0 1
int val2 (PTRMyRefCountedChildIPTR THIS) { 0 0 0
233 1 ▶ RETVAL = THIS->val2;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = THIS->val2; 1 0 1
234 }
235  
236 void DESTROY (PTRMyRefCountedChildIPTR THIS) {
237 1 dcnt.perl++;
238 1 ▶ Sub(cv).SUPER().call(&ST(0), items);
Branch: 3 branches
BranchTrueFalseTotal
Sub(cv).SUPER().call(&ST(0), items); 1 0 1
Sub(cv).SUPER().call(&ST(0), items); 1 0 1
Sub(cv).SUPER().call(&ST(0), items); 1 0 1
239 1 ▶}
Branch: 1 branch
BranchTrueFalseTotal
} 1 0 1
240  
241  
242  
243 MODULE = MyTest::Typemap::Object PACKAGE = MyTest::MyRefCountedIPTR
244 PROTOTYPES: DISABLE
245  
246 2 MyRefCountedIPTR MyRefCounted::new (int val)
247 2 ▶ 
Branch: 1 branch
BranchTrueFalseTotal
2 0 2
248 2 ▶int val (MyRefCountedIPTR THIS) {
Branch: 4 branches
BranchTrueFalseTotal
int val (MyRefCountedIPTR THIS) { 2 0 2
int val (MyRefCountedIPTR THIS) { 2 0 2
int val (MyRefCountedIPTR THIS) { 2 0 2
int val (MyRefCountedIPTR THIS) { 0 0 0
249 3 ▶ RETVAL = THIS->val;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = THIS->val; 3 0 3
250 }
251  
252 3 void DESTROY (MyRefCountedIPTR THIS) { dcnt.perl++; }
253 3 ▶ 
Branch: 1 branch
BranchTrueFalseTotal
3 0 3
254  
255  
256 MODULE = MyTest::Typemap::Object PACKAGE = MyTest::MyRefCountedChildIPTR
257 PROTOTYPES: DISABLE
258  
259 BOOT {
260 35 ▶ Stash("MyTest::MyRefCountedChildIPTR").inherit(Stash("MyTest::MyRefCountedIPTR"));
Branch: 3 branches
BranchTrueFalseTotal
Stash("MyTest::MyRefCountedChildIPTR").inherit(Stash("MyTest::MyRefCountedIPTR")); 35 0 35
Stash("MyTest::MyRefCountedChildIPTR").inherit(Stash("MyTest::MyRefCountedIPTR")); 35 0 35
Stash("MyTest::MyRefCountedChildIPTR").inherit(Stash("MyTest::MyRefCountedIPTR")); 35 0 35
261 }
262  
263 1 MyRefCountedChildIPTR MyRefCountedChild::new (int v1, int v2)
264 1 ▶ 
Branch: 1 branch
BranchTrueFalseTotal
1 0 1
265 1 ▶int val2 (MyRefCountedChildIPTR THIS) {
Branch: 4 branches
BranchTrueFalseTotal
int val2 (MyRefCountedChildIPTR THIS) { 1 0 1
int val2 (MyRefCountedChildIPTR THIS) { 1 0 1
int val2 (MyRefCountedChildIPTR THIS) { 1 0 1
int val2 (MyRefCountedChildIPTR THIS) { 0 0 0
266 1 ▶ RETVAL = THIS->val2;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = THIS->val2; 1 0 1
267 }
268  
269 void DESTROY (MyRefCountedChildIPTR THIS) {
270 1 dcnt.perl++;
271 1 ▶ Sub(cv).SUPER().call(&ST(0), items);
Branch: 3 branches
BranchTrueFalseTotal
Sub(cv).SUPER().call(&ST(0), items); 1 0 1
Sub(cv).SUPER().call(&ST(0), items); 1 0 1
Sub(cv).SUPER().call(&ST(0), items); 1 0 1
272 1 ▶}
Branch: 1 branch
BranchTrueFalseTotal
} 1 0 1
273  
274  
275  
276 MODULE = MyTest::Typemap::Object PACKAGE = MyTest::PTRMyBaseSP
277 PROTOTYPES: DISABLE
278  
279 2 PTRMyBaseSP PTRMyBase::new (int val)
280 2 ▶ 
Branch: 1 branch
BranchTrueFalseTotal
2 0 2
281 2 ▶int val (PTRMyBaseSP THIS) {
Branch: 4 branches
BranchTrueFalseTotal
int val (PTRMyBaseSP THIS) { 2 0 2
int val (PTRMyBaseSP THIS) { 2 0 2
int val (PTRMyBaseSP THIS) { 2 0 2
int val (PTRMyBaseSP THIS) { 0 0 0
282 4 ▶ RETVAL = THIS->val;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = THIS->val; 4 0 4
283 }
284  
285 4 void DESTROY (PTRMyBaseSP THIS) { dcnt.perl++; }
286 4 ▶ 
Branch: 1 branch
BranchTrueFalseTotal
4 0 4
287  
288  
289 MODULE = MyTest::Typemap::Object PACKAGE = MyTest::PTRMyChildSP
290 PROTOTYPES: DISABLE
291  
292 BOOT {
293 35 ▶ Stash("MyTest::PTRMyChildSP").inherit(Stash("MyTest::PTRMyBaseSP"));
Branch: 3 branches
BranchTrueFalseTotal
Stash("MyTest::PTRMyChildSP").inherit(Stash("MyTest::PTRMyBaseSP")); 35 0 35
Stash("MyTest::PTRMyChildSP").inherit(Stash("MyTest::PTRMyBaseSP")); 35 0 35
Stash("MyTest::PTRMyChildSP").inherit(Stash("MyTest::PTRMyBaseSP")); 35 0 35
294 }
295  
296 1 PTRMyChildSP PTRMyChild::new (int val, int val2)
297 1 ▶ 
Branch: 1 branch
BranchTrueFalseTotal
1 0 1
298 1 ▶int val2 (PTRMyChildSP THIS) {
Branch: 4 branches
BranchTrueFalseTotal
int val2 (PTRMyChildSP THIS) { 1 0 1
int val2 (PTRMyChildSP THIS) { 1 0 1
int val2 (PTRMyChildSP THIS) { 1 0 1
int val2 (PTRMyChildSP THIS) { 0 0 0
299 1 ▶ RETVAL = THIS->val2;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = THIS->val2; 1 0 1
300 }
301  
302 void DESTROY (PTRMyChildSP THIS) {
303 1 dcnt.perl++;
304 1 ▶ Sub(cv).SUPER().call(&ST(0), items);
Branch: 3 branches
BranchTrueFalseTotal
Sub(cv).SUPER().call(&ST(0), items); 1 0 1
Sub(cv).SUPER().call(&ST(0), items); 1 0 1
Sub(cv).SUPER().call(&ST(0), items); 1 0 1
305 1 ▶}
Branch: 1 branch
BranchTrueFalseTotal
} 1 0 1
306  
307  
308  
309 MODULE = MyTest::Typemap::Object PACKAGE = MyTest::MyBaseSP
310 PROTOTYPES: DISABLE
311  
312 2 MyBaseSP MyBase::new (int val)
313 2 ▶ 
Branch: 1 branch
BranchTrueFalseTotal
2 0 2
314 2 ▶int val (MyBaseSP THIS) {
Branch: 4 branches
BranchTrueFalseTotal
int val (MyBaseSP THIS) { 2 0 2
int val (MyBaseSP THIS) { 2 0 2
int val (MyBaseSP THIS) { 2 0 2
int val (MyBaseSP THIS) { 0 0 0
315 4 ▶ RETVAL = THIS->val;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = THIS->val; 4 0 4
316 }
317  
318 4 void DESTROY (MyBaseSP THIS) { dcnt.perl++; }
319 4 ▶ 
Branch: 1 branch
BranchTrueFalseTotal
4 0 4
320  
321  
322 MODULE = MyTest::Typemap::Object PACKAGE = MyTest::MyChildSP
323 PROTOTYPES: DISABLE
324  
325 BOOT {
326 35 ▶ Stash("MyTest::MyChildSP").inherit(Stash("MyTest::MyBaseSP"));
Branch: 3 branches
BranchTrueFalseTotal
Stash("MyTest::MyChildSP").inherit(Stash("MyTest::MyBaseSP")); 35 0 35
Stash("MyTest::MyChildSP").inherit(Stash("MyTest::MyBaseSP")); 35 0 35
Stash("MyTest::MyChildSP").inherit(Stash("MyTest::MyBaseSP")); 35 0 35
327 }
328  
329 1 MyChildSP MyChild::new (int val, int val2)
330 1 ▶ 
Branch: 1 branch
BranchTrueFalseTotal
1 0 1
331 1 ▶int val2 (MyChildSP THIS) {
Branch: 4 branches
BranchTrueFalseTotal
int val2 (MyChildSP THIS) { 1 0 1
int val2 (MyChildSP THIS) { 1 0 1
int val2 (MyChildSP THIS) { 1 0 1
int val2 (MyChildSP THIS) { 0 0 0
332 1 ▶ RETVAL = THIS->val2;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = THIS->val2; 1 0 1
333 }
334  
335 void DESTROY (MyChildSP THIS) {
336 1 dcnt.perl++;
337 1 ▶ Sub(cv).SUPER().call(&ST(0), items);
Branch: 3 branches
BranchTrueFalseTotal
Sub(cv).SUPER().call(&ST(0), items); 1 0 1
Sub(cv).SUPER().call(&ST(0), items); 1 0 1
Sub(cv).SUPER().call(&ST(0), items); 1 0 1
338 1 ▶}
Branch: 1 branch
BranchTrueFalseTotal
} 1 0 1
« t/typemap/not_null.xsi ↑ Summary src/xs/typemap/error.cc »