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

13 lines
577 B
Markdown
Raw Normal View History

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.