2 ms·
It's like goto, but you can jump over function boundaries. Checking out the other comments here its not considered harmful...
by randomNumber7 4y ago
It's like goto, but you can jump over function boundaries. Checking out the other comments here its not considered harmful...
- kazinator 4y agolongjmp is like return, which can jump out of a function, to the immediate caller. However, longjmp can return directly to a grandparent, great-grandparent, ... this happens without any unwind support; you have to invent your own conventions for that and implement them. Only carefully-written code which knows about the conventions of your particular longjmp wrapper library will get the unwinding.