AROS_UFH3(static LONG, __detach_trampoline, AROS_UFHA(char *,argstr,A0), AROS_UFHA(ULONG,argsize,D0), AROS_UFHA(struct ExecBase *,SysBase,A6)) { AROS_USERFUNC_INIT LONG retval; D(bug("Entering __detach_trampoline(\"%s\", %d, %x)\n", argstr, argsize, SysBase)); /* The program has two options: either take care of telling the detacher process when exactly to go away, via the Detach() function, or let this startup code take care of it. If __detached_manages_detach is TRUE, then the detached process handles it, otherwise we handle it. */ if (!__detached_manages_detach) __Detach(RETURN_OK); __startup_entries_next(); /* At this point the detacher process might still be around, If the program forgot to detach, or if it couldn't, but in any case we need to tell the detacher to go away. */ __Detach(retval); D(bug("Leaving __detach_trampoline\n")); return 0; AROS_USERFUNC_EXIT }
void Detach(void) { __Detach(RETURN_OK); }