Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

retire trap() #61

Merged
merged 1 commit into from
Jul 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions lib/exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,6 @@ vtrap(struct exec_context *ctx, enum trapid id, const char *fmt, va_list ap)
return ETOYWASMTRAP;
}

int
trap(struct exec_context *ctx, const char *fmt, ...)
{
int ret;
va_list ap;
va_start(ap, fmt);
ret = vtrap(ctx, TRAP_MISC, fmt, ap);
va_end(ap);
return ret;
}

int
trap_with_id(struct exec_context *ctx, enum trapid id, const char *fmt, ...)
{
Expand Down
2 changes: 0 additions & 2 deletions lib/exec.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ int invoke(struct funcinst *finst, const struct resulttype *paramtype,

int check_interrupt(struct exec_context *ctx);

int trap(struct exec_context *ctx, const char *fmt, ...)
__attribute__((__format__(__printf__, 2, 3)));
int trap_with_id(struct exec_context *ctx, enum trapid id, const char *fmt,
...) __attribute__((__format__(__printf__, 3, 4)));
int memory_getptr(struct exec_context *ctx, uint32_t memidx, uint32_t ptr,
Expand Down