diff options
| author | flysand7 <yyakut.ac@gmail.com> | 2023-10-18 01:57:26 +1100 |
|---|---|---|
| committer | flysand7 <yyakut.ac@gmail.com> | 2023-10-27 10:51:21 +1100 |
| commit | 4d65b1ab9cb86bcbbfb0e5b26e3552f6f3582004 (patch) | |
| tree | b61fb2dbcfe8fbd8574cbda546c27ed91e49d44a /core/net/socket.odin | |
| parent | 8e4bdcfb9837d70e94634db02e79a06036a3dde7 (diff) | |
Implement new sys/unix package
Diffstat (limited to 'core/net/socket.odin')
| -rw-r--r-- | core/net/socket.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/net/socket.odin b/core/net/socket.odin index 8cdf7cceb..40fa6ab56 100644 --- a/core/net/socket.odin +++ b/core/net/socket.odin @@ -18,7 +18,7 @@ package net Jeroen van Rijn: Cross platform unification, code style, documentation */ -any_socket_to_socket :: proc(socket: Any_Socket) -> Socket { +any_socket_to_socket :: proc "contextless" (socket: Any_Socket) -> Socket { switch s in socket { case TCP_Socket: return Socket(s) case UDP_Socket: return Socket(s) |