omega-bridge
Omega-first language interoperability: checked conversion backends and native language bindings
Brought by drakestapleton
omega-bridge / tests / native / macos / hostw.om
| 1 | note A function-mode unit with a host word: its write is a Linux system call (svc) made by the code itself. |
| 2 | note The generated C must refuse to build on macOS, which numbers system calls differently. |
| 3 | fn hostw x ulong to ulong |
| 4 | b = new uchar 4 65 |
| 5 | n = write 1 b 0 1 |
| 6 | ret add x ulong n |
| 7 | end |