4 ms·
> longjmp panics unless it is called from a stack frame that is an ancestor of a stack frame that considers the zjmp_buf to be valid. Maybe I have things backw
by toast0 4mo ago
> longjmp panics unless it is called from a stack frame that is an ancestor of a stack frame that considers the zjmp_buf to be valid.
Maybe I have things backwards, but I think you mean descendent and not ancestor here?
If a() calls b(), I wouldn't think the stack frame while running b is the ancestor of a.
- dcuthbertson 4mo ago> If a() calls b(), I wouldn't think the stack frame while running b is the ancestor of a. I think of b as the child/descendant of a because a creates the running instance of b, and that makes a the parent/ancestor of b.
- pizlonator 4mo agoI meant descendant. Fixed.