summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitya Selivanov <0x7fffff@guattari.ru>2022-08-15 06:05:22 +0400
committerMitya Selivanov <0x7fffff@guattari.ru>2022-08-15 06:05:22 +0400
commit599a87544343e386b59e1f096475c02b55fc2340 (patch)
treea889f6ea94d27fe042db826c0725537d009264f9
parentd01d6adafc655895f23023057a0cb0a3be648af3 (diff)
downloadkit-599a87544343e386b59e1f096475c02b55fc2340.zip
Fix AF_EXECUTE
-rw-r--r--source/kit/async_function.h6
1 files 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