2 Copyright � 1995-2007, The AROS Development Team. All rights reserved.
5 Desc: ANSI C function longjmp()
9 /******************************************************************************
14 void longjmp (jmp_buf env, int val);
17 Save the current context so that you can return to it later.
20 env - The context/environment to restore
21 val - This value is returned by setjmp() when you return to the
22 saved context. You cannot return 0. If val is 0, then
23 setjmp() returns with 1.
26 This function doesn't return.
37 ... this code is executed after setjmp() returns ...
39 // This is no good example on how to use this function
40 // You should not do that
48 ... this code is executed if you call longjmp(env) ...
59 12.10.1999 Code rewritten according to glibc
61 ******************************************************************************/
63 #include "aros/ppc/asm.h"
67 .globl AROS_CDEFNAME(longjmp)
69 AROS_CDEFNAME
(longjmp
):