2 #include "catcherror.h"
4 struct StackElement * stackptr=NULL;
6 void handler(int signal) {
7 jmp_buf *jb=(jmp_buf *)popstack(&stackptr);
9 printf("Signal %d\n",signal);
15 void installhandlers() {
16 signal(SIGSEGV,&handler);
17 signal(SIGFPE,&handler);