Skip to content

Set up a way to get errors from rbspy / pyspy #5

@petethepig

Description

@petethepig

Currently we have this setup where we include rust code as a static library with these bindings. All functions return error codes, but no error messages.

We need error messages.

I think the classic C way of doing this is:

  • return -1 from the functions
  • having some static char *errorMessage variable that is modified every time there's an error.

Maybe there are also better ways, I don't know.


This is a good issue if you're familiar with C / Rust programming.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions