mirror of
https://github.com/python/cpython.git
synced 2026-01-04 14:32:21 +00:00
[3.12] gh-127902: Make sure extern "C" is closed when using Py_LIMITED_API (#127904)
Fixes #127902.
This commit is contained in:
parent
2d317332c0
commit
b184f4859a
1 changed files with 1 additions and 1 deletions
|
|
@ -1,10 +1,10 @@
|
|||
#ifndef Py_TRACEMALLOC_H
|
||||
#define Py_TRACEMALLOC_H
|
||||
#ifndef Py_LIMITED_API
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifndef Py_LIMITED_API
|
||||
/* Track an allocated memory block in the tracemalloc module.
|
||||
Return 0 on success, return -1 on error (failed to allocate memory to store
|
||||
the trace).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue