GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [3.12] Add `extern "C"` around `PyTraceMalloc_` functions. (#127772) … · python/cpython@65bca19

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • Include
    • tracemalloc.h
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎Include/tracemalloc.h‎

Copy file name to clipboardExpand all lines: Include/tracemalloc.h
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#ifndef Py_TRACEMALLOC_H
22
#define Py_TRACEMALLOC_H
3+
#ifdef __cplusplus
4+
extern "C" {
5+
#endif
36

47
#ifndef Py_LIMITED_API
58
/* Track an allocated memory block in the tracemalloc module.
@@ -67,6 +70,8 @@ PyAPI_FUNC(PyObject *) _PyTraceMalloc_GetTracedMemory(void);
6770
/* Set the peak size of traced memory blocks to the current size */
6871
PyAPI_FUNC(void) _PyTraceMalloc_ResetPeak(void);
6972

73+
#ifdef __cplusplus
74+
}
7075
#endif
71-
76+
#endif /* !Py_LIMITED_API */
7277
#endif /* !Py_TRACEMALLOC_H */

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.