From 9967411f02958fe98c2a02646a5cb70d832cd5e9 Mon Sep 17 00:00:00 2001 From: Josh Date: Thu, 25 Jul 2024 00:55:23 +0000 Subject: [PATCH] Explicitly define handler This fixes a bug with zig-cc See #20 --- neco.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/neco.h b/neco.h index 6b905c5..153ac54 100644 --- a/neco.h +++ b/neco.h @@ -225,8 +225,9 @@ int neco_cancel_dl(int64_t id, int64_t deadline); int neco_setcanceltype(int type, int *oldtype); int neco_setcancelstate(int state, int *oldstate); -#define neco_cleanup_push(routine, arg) {__neco_c0(&(char[32]){0},routine,arg); -#define neco_cleanup_pop(execute) __neco_c1(execute);} +#define neco_cleanup_push(routine, arg) {char __neco_handler[32]={0};\ + __neco_c0(__neco_handler,routine,arg); +#define neco_cleanup_pop(execute) __neco_c1(execute);} /// @}