From: Brendan Hansen Date: Wed, 18 Oct 2023 14:07:10 +0000 (-0500) Subject: added: stub `__poll` to JS platform X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=105a1f43d744b94f6ed7698a43310a0b036d45b4;p=onyx.git added: stub `__poll` to JS platform --- diff --git a/core/runtime/platform/js/platform.onyx b/core/runtime/platform/js/platform.onyx index 5f4d5604..ebb280f5 100644 --- a/core/runtime/platform/js/platform.onyx +++ b/core/runtime/platform/js/platform.onyx @@ -45,6 +45,12 @@ __futex_wake :: (addr: rawptr, maximum: i32) -> i32 { __atomic_notify(addr, maximum); } +PollDescription :: struct { + fd: i32; + in, out: io.PollEvent; +} +__poll :: (fds: [] PollDescription, timeout := -1) {} + // Sets up everything needed for execution. __start :: () { __runtime_initialize();