Skip to content

Userdata::get triggers the lua panic handler when called from C++ #53

@kunitoki

Description

@kunitoki

The method will trigger the panic handler if a cast cannot be made, this is fine when running in lua, but when executed from C++ it aborts the application when building without exceptions.

Suggestion is to have Userdata::get to return a TypeResult<T*> instead of T* (and eventually making TypeResult to hold an error string).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions