Skip to content

Commit

Permalink
rename __HAVE_TAILCALL -> __HAVE_MUSTTAIL
Browse files Browse the repository at this point in the history
  • Loading branch information
yamt committed Jun 25, 2023
1 parent d718448 commit 20614b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/insn.c
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ read_memarg_nocheck(const uint8_t **pp, struct memarg *arg)
#define SAVE_STACK_PTR ctx->stack.lsize = stack - ctx->stack.p
#define LOAD_STACK_PTR stack = &VEC_NEXTELEM(ctx->stack)
#define ORIG_PC p0
#if defined(TOYWASM_USE_TAILCALL) && defined(__HAVE_TAILCALL)
#if defined(TOYWASM_USE_TAILCALL) && defined(__HAVE_MUSTTAIL)
#define INSN_SUCCESS __musttail return fetch_exec_next_insn(p, stack, ctx)
#else
#define INSN_SUCCESS INSN_SUCCESS_RETURN
Expand Down
4 changes: 2 additions & 2 deletions lib/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

#if defined(__clang__) && defined(__has_attribute) && __has_attribute(musttail)
#define __musttail __attribute__((musttail))
#define __HAVE_TAILCALL
#define __HAVE_MUSTTAIL
#else
#define __musttail
#undef __HAVE_TAILCALL
#undef __HAVE_MUSTTAIL
#endif

#if !defined(__predict_true)
Expand Down

0 comments on commit 20614b8

Please sign in to comment.