interplane.Get Omega
Read in your language

omega-mcp

aien-dev/omega-mcp

Brought by drakestapleton

branch main Branches Tags History

omega-mcp / data / examples / pools.om

16 lines · 400 bytes Raw Blame History
1note a run-time pool (omc only): global NAME T * has length 0 at start and r = enlarge NAME n grows it (r is 0,
2note or -22 / the host's negative errno when refused, NAME unchanged); get, put and len see the current length
3global P ulong *
4fn main to int
5if ne len P 0
6ret 1
7end
8r = enlarge P ulong 3
9if ne r 0
10ret 2
11end
12put P 2 39
13r = enlarge P ulong 2
14put P 0 len P
15ret int add get P 0 get P 2
16end