summaryrefslogtreecommitdiffstats
path: root/Include/cpython/tracemalloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'Include/cpython/tracemalloc.h')
-rw-r--r--Include/cpython/tracemalloc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Include/cpython/tracemalloc.h b/Include/cpython/tracemalloc.h
index 61a16ea..6d09429 100644
--- a/Include/cpython/tracemalloc.h
+++ b/Include/cpython/tracemalloc.h
@@ -1,6 +1,9 @@
#ifndef Py_LIMITED_API
#ifndef Py_TRACEMALLOC_H
#define Py_TRACEMALLOC_H
+#ifdef __cplusplus
+extern "C" {
+#endif
/* Track an allocated memory block in the tracemalloc module.
Return 0 on success, return -1 on error (failed to allocate memory to store
@@ -22,5 +25,8 @@ PyAPI_FUNC(int) PyTraceMalloc_Untrack(
unsigned int domain,
uintptr_t ptr);
+#ifdef __cplusplus
+}
+#endif
#endif // !Py_TRACEMALLOC_H
#endif // !Py_LIMITED_API