Files
hakorune/lang/c-abi/include/README.md

13 lines
577 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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 (FailFast):
- `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.