From 599a87544343e386b59e1f096475c02b55fc2340 Mon Sep 17 00:00:00 2001 From: Mitya Selivanov <0x7fffff@guattari.ru> Date: Mon, 15 Aug 2022 06:05:22 +0400 Subject: Fix AF_EXECUTE --- source/kit/async_function.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/kit/async_function.h b/source/kit/async_function.h index 55e9c0c..12a3295 100644 --- a/source/kit/async_function.h +++ b/source/kit/async_function.h @@ -237,9 +237,9 @@ typedef struct { KIT_AF_AWAIT_N((promises_), \ sizeof(promises_) / sizeof((promises_)[0])) -#define KIT_AF_EXECUTE(coro_state_) \ - KIT_AF_INTERNAL(coro_state_) \ - ._state_machine(coro, kit_af_request_execute) +#define KIT_AF_EXECUTE(promise_) \ + KIT_AF_INTERNAL(promise_)._state_machine((promise_), \ + kit_af_request_execute) #ifndef KIT_DISABLE_SHORT_NAMES # ifndef KIT_DISABLE_AF_SELF_SHORTCUT -- cgit v1.2.3