Hi all,
I am trying to get acquainted with Perl-XS and couldn't find and answer
to the following questions. I would appreciate some help.
Since I am mainly interested in interfacing to C++ I have come across
the typemap entry O_OBJECT in the PERLXS manpage as well as in the
CookbookA
There in the input section one reads
if ( sv_isobject($arg) && (SvTYPE(SvRV($arg)) == SVt_PVMG) )
according to Perl Guts sv_isobject checks for a blessed reference,
so why is there the second check?
In the standard typemap there is a T_PTROBJ type.
At first glance this looks like a better replacement for O_OBJECT. Is
that true?
A recent version of xsubpp generates
dXSTARG;
^^^^^^^
sv_setpv(TARG, RETVAL); XSprePUSH; PUSHTARG;
^^^^^^^^^ ^^^^^^^^
I haven't found these in Perl Guts. Are they very recent?
Thanks for your help,
Helmut Jarausch
Lehrstuhl fuer Numerische Mathematik
Institute of Technology, RWTH Aachen
D 52056 Aachen, Germany