Wanderer/Info: fix compilation
[AROS.git] / arch / .unmaintained / m68k-emul / special.c
blob534e5a54506341060fd97c0edf004401b86b5d6d
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Default trap handler
6 Lang: english
7 */
8 #include <exec/tasks.h>
9 #include <proto/exec.h>
10 #include <stdio.h>
12 AROS_LH0(void, TrapHandler,
13 struct ExecBase *, SysBase, NONE, Exec)
15 struct Task * task;
17 task = FindTask (NULL);
19 fprintf (stderr
20 , "Traphandler for Task %p (%s) invoked\n"
21 , task
22 , (task && task->tc_Node.ln_Name) ?
23 task->tc_Node.ln_Name
24 : "-- unknown task --"
26 fflush (stderr);
27 } /* TrapHandler */