Struct anira_error#

struct anira_error#

Caller-owned error record, filled by the callee on failure: the status and a NUL-terminated message. Tier 1: 520 bytes, frozen; identical on every target, so anira::Result<T> value-initialises it and TypeScript allocates it with anira_sizeof(ANIRA_STRUCT_ERROR).

Public Members

int32_t status#

The anira_status of the failure; ANIRA_OK after ANIRA_ERROR_INIT.

uint32_t reserved#

Padding; zero.

char message[512]#

UTF-8, NUL-terminated; empty when no message was produced.