in reply to Re: Problem on perl callbacks from XSin thread Problem on perl callbacks from XS
Yes, in fact, the complete code contains this:
int count; ... count = call_sv(..., G_SCALAR); assert(count==1); [download]
which, AFAIK, should be "safe".