Hacker News new | ask | show | jobs
by nxobject 715 days ago
If only there was a way of using setjmp/longjmp-style contexts instead of goto, un/winding the stack as required. So we could travel around in time... unfortunately you can't work with a setjmp buffer before it's actually created, unlike gotos.
1 comments

sigaltstack tricks to the rescue! (Although POSIX only, not ISO C)