Lines Matching defs:tstate
385 cfunction_check_kwargs(PyThreadState *tstate, PyObject *func, PyObject *kwnames)
387 assert(!_PyErr_Occurred(tstate));
392 _PyErr_Format(tstate, PyExc_TypeError,
404 cfunction_enter_call(PyThreadState *tstate, PyObject *func)
406 if (_Py_EnterRecursiveCallTstate(tstate, " while calling a Python object")) {
417 PyThreadState *tstate = _PyThreadState_GET();
418 if (cfunction_check_kwargs(tstate, func, kwnames)) {
423 cfunction_enter_call(tstate, func);
428 _Py_LeaveRecursiveCallTstate(tstate);
436 PyThreadState *tstate = _PyThreadState_GET();
439 cfunction_enter_call(tstate, func);
444 _Py_LeaveRecursiveCallTstate(tstate);
452 PyThreadState *tstate = _PyThreadState_GET();
455 PyCMethod meth = (PyCMethod)cfunction_enter_call(tstate, func);
460 _Py_LeaveRecursiveCallTstate(tstate);
468 PyThreadState *tstate = _PyThreadState_GET();
469 if (cfunction_check_kwargs(tstate, func, kwnames)) {
476 _PyErr_Format(tstate, PyExc_TypeError,
482 PyCFunction meth = (PyCFunction)cfunction_enter_call(tstate, func);
488 _Py_LeaveRecursiveCallTstate(tstate);
496 PyThreadState *tstate = _PyThreadState_GET();
497 if (cfunction_check_kwargs(tstate, func, kwnames)) {
504 _PyErr_Format(tstate, PyExc_TypeError,
510 PyCFunction meth = (PyCFunction)cfunction_enter_call(tstate, func);
516 _Py_LeaveRecursiveCallTstate(tstate);
526 PyThreadState *tstate = _PyThreadState_GET();
527 assert(!_PyErr_Occurred(tstate));
548 _PyErr_Format(tstate, PyExc_TypeError,
555 return _Py_CheckFunctionResult(tstate, func, result, NULL);