ยปCore Development>Code coverage>Python/pyfpe.c

Python code coverage for Python/pyfpe.c

#countcontent
1n/a#include "pyconfig.h"
2n/a#include "pyfpe.h"
3n/a/*
4n/a * The signal handler for SIGFPE is actually declared in an external
5n/a * module fpectl, or as preferred by the user. These variable
6n/a * definitions are required in order to compile Python without
7n/a * getting missing externals, but to actually handle SIGFPE requires
8n/a * defining a handler and enabling generation of SIGFPE.
9n/a */
10n/a
11n/a#ifdef WANT_SIGFPE_HANDLER
12n/ajmp_buf PyFPE_jbuf;
13n/aint PyFPE_counter = 0;
14n/a#endif
15n/a
16n/a/* Have this outside the above #ifdef, since some picky ANSI compilers issue a
17n/a warning when compiling an empty file. */
18n/a
19n/adouble
20n/aPyFPE_dummy(void *dummy)
21n/a{
22n/a return 1.0;
23n/a}