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"
1 parent 5c89adf commit 9df48feCopy full SHA for 9df48fe
Include/cpython/tracemalloc.h
@@ -2,6 +2,10 @@
2
#ifndef Py_TRACEMALLOC_H
3
#define Py_TRACEMALLOC_H
4
5
+#ifdef __cplusplus
6
+extern "C" {
7
+#endif
8
+
9
/* Track an allocated memory block in the tracemalloc module.
10
Return 0 on success, return -1 on error (failed to allocate memory to store
11
the trace).
@@ -22,5 +26,9 @@ PyAPI_FUNC(int) PyTraceMalloc_Untrack(
22
26
unsigned int domain,
23
27
uintptr_t ptr);
24
28
29
30
+}
31
32
25
33
#endif // !Py_TRACEMALLOC_H
34
#endif // !Py_LIMITED_API
0 commit comments