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.cpp # 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.cpp` 16 lines ยท 454 bytes Raw Blame History 1 // C++ caller for the G1 sample calc: reads "i0 i1" lines, prints "i0 i1 status result" per line. 2 #include 3 #include 4 5 #include "omega_native.h" // generated by tools/native, nothing typed by hand 6 7 int main() 8 { 9 std::uint64_t a, b; 10 while (std::cin >> a >> b) { 11 std::uint64_t r = 0; 12 std::uint32_t s = omega_calc(&r, a, b); 13 std::cout << a << ' ' << b << ' ' << s << ' ' << r << '\n'; 14 } 15 return 0; 16 }