interplane.Get Omega
Read in your language

omega-bridge

Omega-first language interoperability: checked conversion backends and native language bindings

Brought by drakestapleton

branch main Branches Tags History

omega-bridge / tests / native / macos / hostw.om

7 lines · 285 bytes Raw Blame History
1note A function-mode unit with a host word: its write is a Linux system call (svc) made by the code itself.
2note The generated C must refuse to build on macOS, which numbers system calls differently.
3fn hostw x ulong to ulong
4b = new uchar 4 65
5n = write 1 b 0 1
6ret add x ulong n
7end