C
cyl
Suppose I have two functions in my XS code, say funcA and funcB, after
I store an SV in a global pointer in funcA, is it possible for me to
access it in funcB? Here is my pseudo code
void *p;
void funcA()
{
p = (void*)ST(0); //suppose ST(0) is a reference
}
void funcB()
{
SV *sv = (SV*)p;
if (SvROK(sv)) ... //actually I cannot get the original SV
in funcA
}
What is the correct way? Thanks.
I store an SV in a global pointer in funcA, is it possible for me to
access it in funcB? Here is my pseudo code
void *p;
void funcA()
{
p = (void*)ST(0); //suppose ST(0) is a reference
}
void funcB()
{
SV *sv = (SV*)p;
if (SvROK(sv)) ... //actually I cannot get the original SV
in funcA
}
What is the correct way? Thanks.