| 1 |
|
| #include <xs.h> |
| 2 |
|
| #include <vector> |
| 3 |
|
| #include <map> |
| 4 |
|
| #include "tmtest.h" |
| 5 |
|
| #include <panda/error.h> |
| 6 |
|
| |
| 7 |
|
| using namespace xs; |
| 8 |
|
| using namespace panda; |
| 9 |
|
| |
| 10 |
|
| DCnt dcnt; |
| 11 |
|
| |
| 12 |
|
| MODULE = MyTest::Typemap PACKAGE = MyTest |
| 13 |
|
| PROTOTYPES: DISABLE |
| 14 |
|
| |
| 15 |
|
| BOOT { |
| 16 |
35 |
| XS_BOOT(MyTest__Typemap__Object); |
| 17 |
35 |
| XS_BOOT(MyTest__Typemap__CD); |
| 18 |
|
| } |
| 19 |
|
| |
| 20 |
|
| AV* dcnt () { |
| 21 |
111 |
| RETVAL = newAV(); |
| 22 |
111 |
| av_push(RETVAL, newSViv(dcnt.c)); |
| 23 |
111 |
| av_push(RETVAL, newSViv(dcnt.perl)); |
| 24 |
111 |
| dcnt.c = 0; |
| 25 |
111 |
▶ | dcnt.perl = 0; |
Branch: 1 branch
| Branch | True | False | Total |
| dcnt.perl = 0; |
111 |
0 |
111 |
|
| 26 |
|
| } |
| 27 |
|
| |
| 28 |
|
| INCLUDE: primitives.xsi |
| 29 |
|
| |
| 30 |
|
| INCLUDE: svrefs.xsi |
| 31 |
|
| |
| 32 |
|
| INCLUDE: const.xsi |
| 33 |
|
| |
| 34 |
|
| INCLUDE: container.xsi |
| 35 |
|
| |
| 36 |
|
| INCLUDE: not_null.xsi |
| 37 |
|
| |
| 38 |
|
| INCLUDE: svapi.xsi |
| 39 |
|
| |
| 40 |
|
| INCLUDE: error.xsi |
| 41 |
|
| |
| 42 |
|
| INCLUDE: expected.xsi |