From 8f5702e69eaeda44008bf0b6539a192fe9d74419 Mon Sep 17 00:00:00 2001 From: Laytan Laats Date: Tue, 13 Jan 2026 19:38:27 +0100 Subject: [PATCH] nbio: reorder Operation fields to be more logical --- core/nbio/nbio.odin | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/core/nbio/nbio.odin b/core/nbio/nbio.odin index 16664ea9f..274cc5291 100644 --- a/core/nbio/nbio.odin +++ b/core/nbio/nbio.odin @@ -42,16 +42,17 @@ MAX_USER_ARGUMENTS :: #config(NBIO_MAX_USER_ARGUMENTS, 4) #assert(MAX_USER_ARGUMENTS >= 4) Operation :: struct { + cb: Callback, + user_data: [MAX_USER_ARGUMENTS + 1]rawptr, + detached: bool, + type: Operation_Type, + using specifics: Specifics, + _impl: _Operation `fmt:"-"`, using _: struct #raw_union { _pool_link: ^Operation, l: ^Event_Loop, }, - cb: Callback, - using _specifics: Specifics, - user_data: [MAX_USER_ARGUMENTS + 1]rawptr, - type: Operation_Type, - detached: bool, } Specifics :: struct #raw_union {