Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-bridge/blob/main/tests/native/g1/caller.py # omega-bridge Omega-first language interoperability: checked conversion backends and native language bindings Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-bridge / tests / native / g1 / caller.py` 9 lines ยท 453 bytes Raw Blame History 1 # Python caller for the G1 sample calc: reads "i0 i1" lines, prints "i0 i1 status result" per line. 2 import ctypes, os, sys 3 sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) # python3 -I drops this folder 4 import omega_native as om # generated by tools/native, nothing typed by hand 5 for line in sys.stdin: 6 a, b = map(int, line.split()) 7 r = ctypes.c_uint64(0) 8 s = om.omega_calc(ctypes.byref(r), a, b) 9 print(a, b, s, r.value)