Skip to content

error handling: wrap pcall and other code in __try __except blocks to avoid crashes #13

@gynt

Description

@gynt

Since RPS lua can call into C, but C can also call into lua (hooks and detours), error handling can get tricky. It is probably best to register an error handler for sensitive operations.

Instructions:
https://stackoverflow.com/questions/7049502/c-try-and-try-catch-finally

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions