2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
5 Desc: autoinit library - arosc.library specific code
9 #include <aros/debug.h>
10 #include <aros/symbolsets.h>
11 #include <aros/startup.h>
13 #include <sys/arosc.h>
15 static void __arosc_startup(struct ExecBase
*SysBase
)
19 if (setjmp(exitjmp
) == 0)
21 D(bug("[__arosc_startup] setjmp() called\n"));
23 /* Tell arosc.library a program using it has started */
24 __arosc_program_startup(exitjmp
, (int *)&__startup_error
);
25 D(bug("[__arosc_startup] Library startup called\n"));
27 __startup_entries_next();
31 D(bug("[__arosc_startup] setjmp() return from longjmp\n"));
34 /* Tell arosc.library program has reached the end */
35 __arosc_program_end();
37 D(bug("[__arosc_startup] Leave\n"));
40 ADD2SET(__arosc_startup
, PROGRAM_ENTRIES
, 0);