blob: 0b38997e10fca89eec48afc84d6a4df5d68fdc3b [file] [log] [blame]
Guido van Rossum0ae748d1997-02-14 22:58:07 +00001#include "config.h"
2#include "pyfpe.h"
3
4/*
5 * The signal handler for SIGFPE is actually declared in an external
6 * module fpectl, or as preferred by the user. These variable
7 * definitions are required in order to compile Python without
8 * getting missing externals, but to actually handle SIGFPE requires
9 * defining a handler and enabling generation of SIGFPE.
10 */
11
12#ifdef WANT_SIGFPE_HANDLER
13jmp_buf PyFPE_jbuf;
14int PyFPE_counter = 0;
15double PyFPE_dummy(void){return(1.0);}
16#endif