Victor Stinner | 066e5b1 | 2019-06-14 18:55:22 +0200 | [diff] [blame^] | 1 | /*[clinic input] |
| 2 | preserve |
| 3 | [clinic start generated code]*/ |
| 4 | |
| 5 | PyDoc_STRVAR(_thread__is_main_interpreter__doc__, |
| 6 | "_is_main_interpreter($module, /)\n" |
| 7 | "--\n" |
| 8 | "\n" |
| 9 | "Return True if the current interpreter is the main Python interpreter."); |
| 10 | |
| 11 | #define _THREAD__IS_MAIN_INTERPRETER_METHODDEF \ |
| 12 | {"_is_main_interpreter", (PyCFunction)_thread__is_main_interpreter, METH_NOARGS, _thread__is_main_interpreter__doc__}, |
| 13 | |
| 14 | static PyObject * |
| 15 | _thread__is_main_interpreter_impl(PyObject *module); |
| 16 | |
| 17 | static PyObject * |
| 18 | _thread__is_main_interpreter(PyObject *module, PyObject *Py_UNUSED(ignored)) |
| 19 | { |
| 20 | return _thread__is_main_interpreter_impl(module); |
| 21 | } |
| 22 | /*[clinic end generated code: output=505840d1b9101789 input=a9049054013a1b77]*/ |