We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
extern "C"
PyTraceMalloc_
1 parent e122e0f commit a851d0fCopy full SHA for a851d0f
Include/cpython/tracemalloc.h
@@ -1,6 +1,9 @@
1
#ifndef Py_LIMITED_API
2
#ifndef Py_TRACEMALLOC_H
3
#define Py_TRACEMALLOC_H
4
+#ifdef __cplusplus
5
+extern "C" {
6
+#endif
7
8
/* Track an allocated memory block in the tracemalloc module.
9
Return 0 on success, return -1 on error (failed to allocate memory to store
@@ -22,5 +25,8 @@ PyAPI_FUNC(int) PyTraceMalloc_Untrack(
22
25
unsigned int domain,
23
26
uintptr_t ptr);
24
27
28
29
+}
30
31
#endif // !Py_TRACEMALLOC_H
32
#endif // !Py_LIMITED_API
0 commit comments