1 /* This file is part of the Sub::Op Perl module.
2 * See http://search.cpan.org/dist/Sub-Op/ */
4 #define PERL_NO_GET_CONTEXT
9 #define __PACKAGE__ "Sub::Op::Test"
10 #define __PACKAGE_LEN__ (sizeof(__PACKAGE__)-1)
14 STATIC SV *sub_op_test_cb = NULL;
16 STATIC OP *sub_op_test_pp(pTHX) {
26 items = call_sv(sub_op_test_cb, G_ARRAY);
29 for (i = 0; i < items; ++i)
39 /* --- XS ------------------------------------------------------------------ */
41 MODULE = Sub::Op::Test PACKAGE = Sub::Op::Test
51 k.name = SvPV_const(name, k.len);
53 k.pp = sub_op_test_pp;
54 sub_op_register(aTHX_ &k);
63 if (SvTYPE(cb) >= SVt_PVCV) {
64 SvREFCNT_dec(sub_op_test_cb);
65 sub_op_test_cb = SvREFCNT_inc(cb);