2 Copyright � 1995-2007, The AROS Development Team. All rights reserved.
5 Desc: ANSI C function setjmp()
9 /******************************************************************************
14 int setjmp (jmp_buf env);
17 Save the current context so that you can return to it later.
20 env - The context/environment is saved here for later restoring
23 0 if it returns from setjmp() and 1 when it returns from longjmp().
34 ... this code is executed after setjmp() returns ...
36 // This is no good example on how to use this function
37 // You should not do that
45 ... this code is executed if you call longjmp(env) ...
56 12.10.1999 Code rewritten according to glibc
57 ******************************************************************************/
59 #include "aros/ppc/asm.h"
63 .global AROS_CDEFNAME(setjmp)
64 _FUNCTION
(AROS_CDEFNAME
(setjmp
))
66 AROS_CDEFNAME
(setjmp
):