This reference describes unreleased code on main; no release documents it yet.

rlmesh_ext_callback_set_tagged_error_payload

functionExperimental#include <rlmesh.h>[source]

Tagged ownership transfer: the library never reads tag or payload bytes. The tag identifies a payload representation/owner domain. The legacy setter records a NULL tag. Use the returned deleter for foreign representations. On success, all outputs are initialized (NULL when empty); outputs must be distinct writable slots. All three are required. A failing call does not consume the payload. A successful take transfers the deleter obligation.

void rlmesh_ext_callback_set_tagged_error_payload(
    void* payload,
    void (*free_payload)(void* payload),
    const void* tag
)