There was an error while loading. Please reload this page.
extern "C"
1 parent 5c89adf commit 36dbfbaCopy full SHA for 36dbfba
1 file changed
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