Skip to content

Commit

Permalink
Explicitly define handler
Browse files Browse the repository at this point in the history
This fixes a bug with zig-cc

See #20
  • Loading branch information
tidwall committed Jul 25, 2024
1 parent 6827eba commit 9967411
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions neco.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);}

/// @}

Expand Down

0 comments on commit 9967411

Please sign in to comment.