I'm getting something I'm confused.
I have this XS code:
if (SvTYPE(ST(3)) != SVt_PVAV)
{
printf("arg 3 must be pointer to list of points!\n");
}
My test code is :
$x{a} = undef;
$_ = 'x';
@pts = qw ( 0 0 0 10 10 10 10 0 0 0);
print "not " if Laff::Node->New("BLA-BLA",1,\%x);
print "ok 5\n";
print "not " unless Laff::Node->New("BLA-BLA",1,\@pts);
print "ok 8\n";
Both get the error message about arg 3 must be pointer.
What's the problem?
