mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-06 09:50:28 +00:00
removed CheckFunctionResult
This commit is contained in:
parent
c626c914be
commit
3ce40075f7
3 changed files with 7 additions and 0 deletions
4
third_party/python/Include/abstract.h
vendored
4
third_party/python/Include/abstract.h
vendored
|
@ -36,8 +36,12 @@ PyObject *_PyObject_FastCallKeywords(PyObject *func, PyObject **args,
|
|||
PyObject *_PyObject_Call_Prepend(PyObject *func, PyObject *obj, PyObject *args,
|
||||
PyObject *kwargs);
|
||||
|
||||
#ifdef USE_CHECKFUNCRESULT
|
||||
PyObject *_Py_CheckFunctionResult(PyObject *func, PyObject *result,
|
||||
const char *where);
|
||||
#else
|
||||
#define _Py_CheckFunctionResult(func, result, where) (result)
|
||||
#endif
|
||||
#endif /* Py_LIMITED_API */
|
||||
|
||||
PyObject *PyObject_CallObject(PyObject *callable_object, PyObject *args);
|
||||
|
|
2
third_party/python/Objects/abstract.c
vendored
2
third_party/python/Objects/abstract.c
vendored
|
@ -2210,6 +2210,7 @@ PyObject_CallObject(PyObject *o, PyObject *a)
|
|||
return PyEval_CallObjectWithKeywords(o, a, NULL);
|
||||
}
|
||||
|
||||
#ifdef USE_CHECKFUNCRESULT
|
||||
PyObject*
|
||||
_Py_CheckFunctionResult(PyObject *func, PyObject *result, const char *where)
|
||||
{
|
||||
|
@ -2257,6 +2258,7 @@ _Py_CheckFunctionResult(PyObject *func, PyObject *result, const char *where)
|
|||
}
|
||||
return result;
|
||||
}
|
||||
#endif
|
||||
|
||||
PyObject *
|
||||
PyObject_Call(PyObject *func, PyObject *args, PyObject *kwargs)
|
||||
|
|
1
third_party/python/python.mk
vendored
1
third_party/python/python.mk
vendored
|
@ -2167,6 +2167,7 @@ THIRD_PARTY_PYTHON_STDLIB_PYS = \
|
|||
ifeq ($(MODE), dbg)
|
||||
THIRD_PARTY_PYTHON_FLAGS += \
|
||||
-DUSE_TRACEMALLOC \
|
||||
-DUSE_CHECKFUNCRESULT \
|
||||
-DUSE_BADINTERNALCALL
|
||||
THIRD_PARTY_PYTHON_STAGE1_A_SRCS += \
|
||||
third_party/python/Modules/_tracemalloc.c
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue