Skip to content

Commit

Permalink
[3.12] gh-127902: Make sure extern "C" is closed when using Py_LIMI…
Browse files Browse the repository at this point in the history
…TED_API (#127904)

Fixes #127902.
  • Loading branch information
mitya57 authored Dec 13, 2024
1 parent 2d31733 commit b184f48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Include/tracemalloc.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#ifndef Py_TRACEMALLOC_H
#define Py_TRACEMALLOC_H
#ifndef Py_LIMITED_API
#ifdef __cplusplus
extern "C" {
#endif

#ifndef Py_LIMITED_API
/* Track an allocated memory block in the tracemalloc module.
Return 0 on success, return -1 on error (failed to allocate memory to store
the trace).
Expand Down

0 comments on commit b184f48

Please sign in to comment.