I'm tring to define jmp_buf as pointer and using it in nested longjmp(s).as follow:
...
jmp_buf *bfj;
...
and then writing if else:
if( setjmp(*bfj) == 0){
DS[SP-2].int_val=(int)bfj;;
//to store the bfj
}else {}
and somewhere else using the stored bfj to longjmp
bfj = (jmp_buf *)DS[TOP].int_val;
longjmp(*bfj,1);
where DS[TOP].int_val is where I stored it. as it may seems clear,I want to do nested gotos and returns using stored bfj. but well when I try to debug I get "unhandeled exception". I get this at the very starting point:
if( setjmp(*bfj) == 0)
I would be pleased if someone would tell the solution.