Added section about adding contextual information to log output.
[python.git] / Modules / python.c
blob2739b8b11098ee799ff86b1a3d6c3f51ab8fc899
1 /* Minimal main program -- everything is loaded from the library */
3 #include "Python.h"
5 #ifdef __FreeBSD__
6 #include <floatingpoint.h>
7 #endif
9 int
10 main(int argc, char **argv)
12 /* 754 requires that FP exceptions run in "no stop" mode by default,
13 * and until C vendors implement C99's ways to control FP exceptions,
14 * Python requires non-stop mode. Alas, some platforms enable FP
15 * exceptions by default. Here we disable them.
17 #ifdef __FreeBSD__
18 fp_except_t m;
20 m = fpgetmask();
21 fpsetmask(m & ~FP_X_OFL);
22 #endif
23 return Py_Main(argc, argv);