13 lines
577 B
Markdown
13 lines
577 B
Markdown
|
|
This directory will host public headers for the C ABI kernel line.
|
|||
|
|
|
|||
|
|
Canonical header path (Phase 20.9+):
|
|||
|
|
- `lang/c-abi/include/hako_hostbridge.h`
|
|||
|
|
|
|||
|
|
Diagnostics helpers (Fail‑Fast):
|
|||
|
|
- `lang/c-abi/include/hako_diag.h` provides `HAKO_FAIL_WITH(err_out, "CODE", "message")`.
|
|||
|
|
- Including files must define `hako_set_last_error` and `set_err`.
|
|||
|
|
- Use this to keep short error codes consistent (OK / OOM / FAILED / NOT_FOUND / VALIDATION / UNSUPPORTED).
|
|||
|
|
|
|||
|
|
Compatibility:
|
|||
|
|
- `include/hako_hostbridge.h` may remain as a thin shim that includes the canonical header during transition.
|