blob: 07ea08b1750d53268eeb4fce675c98d8ee95a721 [file] [log] [blame]
Victor Stinner066e5b12019-06-14 18:55:22 +02001/*[clinic input]
2preserve
3[clinic start generated code]*/
4
5PyDoc_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
14static PyObject *
15_thread__is_main_interpreter_impl(PyObject *module);
16
17static 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]*/