Re: non sequential execution...
- From: Flash Gordon <spam@xxxxxxxxxxxxxxxxxx>
- Date: Thu, 03 Nov 2005 13:08:59 +0000
s88 wrote:
thank for your answer!!
I found another way...
Please include enough context for people to know what you are talking about. Most people do not use Google and there is absolutely no guarantee that they will have seen earlier messages in the thread. Search this group for "Google context" to find instructions on how to post properly through Google.
jmp_buf flag1,flag2; void add(){ execution(1); if(setjmp(flag1)){ execution(3); longjmp(flag2,1); } }
void sub(){ execution(2); if(setjmp(flag2)){ execution(4); return; } longjmp(flag1,1); }
This is not valid C. You are only allowed to call longjmp with a buffer for a function that has not yet terminated.
But it seems a little bit complicated.. Does exist more elegant way?
Why would you want to do this? If you can come up with a sensible scenario in which you think this behaviour is required we can try to come up with a sensible way of solving the problem.
--
Flash Gordon
Living in interesting times.
Although my email address says spam, it is real and I read it.
.
- Follow-Ups:
- Re: non sequential execution...
- From: s88
- Re: non sequential execution...
- References:
- non sequential execution...
- From: s88
- Re: non sequential execution...
- From: Mike Wahler
- Re: non sequential execution...
- From: s88
- non sequential execution...
- Prev by Date: Function, Dll, and how to call them from any windows program, help Please.
- Next by Date: Re: Function, Dll, and how to call them from any windows program, help Please.
- Previous by thread: Re: non sequential execution...
- Next by thread: Re: non sequential execution...
- Index(es):
Relevant Pages
|
|