diff options
Diffstat (limited to 'Include')
-rw-r--r-- | Include/objimpl.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Include/objimpl.h b/Include/objimpl.h index 9c13e71..4197bde 100644 --- a/Include/objimpl.h +++ b/Include/objimpl.h @@ -76,6 +76,13 @@ recommended to use PyObject_{New, NewVar, Del}. */ memory management purposes exclusively. Both the core and extension modules should use the PyObject_* API. */ +#ifdef WITH_PYMALLOC +#define PyCore_OBJECT_MALLOC_FUNC _PyCore_ObjectMalloc +#define PyCore_OBJECT_REALLOC_FUNC _PyCore_ObjectRealloc +#define PyCore_OBJECT_FREE_FUNC _PyCore_ObjectFree +#define NEED_TO_DECLARE_OBJECT_MALLOC_AND_FRIEND +#endif /* !WITH_PYMALLOC */ + #ifndef PyCore_OBJECT_MALLOC_FUNC #undef PyCore_OBJECT_REALLOC_FUNC #undef PyCore_OBJECT_FREE_FUNC |