Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
yamt committed Sep 29, 2023
1 parent 31dc124 commit 884544c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,11 @@ frame_exit(struct exec_context *ctx)
/*
* Note: it's caller's responsibility to move results
* on the operand stack if necessary.
*
* Note: while this function pops a frame from ctx->frames,
* it leaves the contents of the frame intact.
* Some of the callers actually rely on the behavior and use
* the frame after calling this function.
*/
struct funcframe *frame;
assert(ctx->frames.lsize > 0);
Expand Down

0 comments on commit 884544c

Please sign in to comment.