https://github.com/python/cpython/commit/b184f4859a32771bfa027c2a4cd2cdd3a5194842
commit: b184f4859a32771bfa027c2a4cd2cdd3a5194842
branch: 3.12
author: Dmitry Shachnev <[email protected]>
committer: vstinner <[email protected]>
date: 2024-12-13T11:18:28Z
summary:
[3.12] gh-127902: Make sure `extern "C"` is closed when using Py_LIMITED_API
(#127904)
Fixes #127902.
files:
M Include/tracemalloc.h
diff --git a/Include/tracemalloc.h b/Include/tracemalloc.h
index b6865f1f6835cb..4db34b9509e7e2 100644
--- a/Include/tracemalloc.h
+++ b/Include/tracemalloc.h
@@ -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).
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]