C
cyl
in Perl script,
my @arr = (1,2,3);
xs_test(\@arr);
in XS code
void xs_test()
{
SV * sv = ST(0);
// get the memory address of this array reference and save it,
but how?
}
How do I get the memory address of \@arr in xs_test? Will the content
in that address change when exiting the xs_test function? Thanks.
my @arr = (1,2,3);
xs_test(\@arr);
in XS code
void xs_test()
{
SV * sv = ST(0);
// get the memory address of this array reference and save it,
but how?
}
How do I get the memory address of \@arr in xs_test? Will the content
in that address change when exiting the xs_test function? Thanks.