Skip to content

Use more Result<T> for bridge functions to capture C++ exceptions #233

@ciscorn

Description

@ciscorn

Some bridge functions already return Result<T> so that cxx catches C++ exceptions (e.g. style_add_layer, style_add_source, style_add_image, GeoJson parse / stringify).

However many functions in bridge.rs return plain T rather than Result<T>, so any C++ exception thrown by MapLibre Native aborts the host process.

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