Skip to content

Document that XS calling to other XS functions that modify the stack should PUTBACK/SPAGAIN #7

Description

@wolfsage

It would seem that if you have:
void x():
...
call_sv(...)
...

void y():
    ....
    x();

That y() must wrap x() with a PUTBACK/SPAGAIN, otherwise the stack might be corrupted.

This does not seem to be documented anywhere, perhaps add a note within perlcall()...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions