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