mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
bpo-35059: Remove Py_STATIC_INLINE() macro (GH-10216)
"static inline" should be used directly. Forcing the compiler to inline is not recommended.
This commit is contained in:
parent
2aaf0c1204
commit
542497aa9f
3 changed files with 24 additions and 41 deletions
|
|
@ -144,7 +144,7 @@ PyAPI_FUNC(PyVarObject *) _PyObject_NewVar(PyTypeObject *, Py_ssize_t);
|
|||
See also pymem.h.
|
||||
|
||||
These inline functions expect non-NULL object pointers. */
|
||||
Py_STATIC_INLINE(PyObject*)
|
||||
static inline PyObject*
|
||||
PyObject_INIT(PyObject *op, PyTypeObject *typeobj)
|
||||
{
|
||||
assert(op != NULL);
|
||||
|
|
@ -153,7 +153,7 @@ PyObject_INIT(PyObject *op, PyTypeObject *typeobj)
|
|||
return op;
|
||||
}
|
||||
|
||||
Py_STATIC_INLINE(PyVarObject*)
|
||||
static inline PyVarObject*
|
||||
PyObject_INIT_VAR(PyVarObject *op, PyTypeObject *typeobj, Py_ssize_t size)
|
||||
{
|
||||
assert(op != NULL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue