Skip to content

Commit

Permalink
Get rid of borrows from Python/frame.c
Browse files Browse the repository at this point in the history
Summary:
Add a PyAPI declaration to the functions we need and remove the borrows from
them and their dependencies.

Reviewed By: itamaro

Differential Revision: D65370625

fbshipit-source-id: b24433d9328cff765334fbfddbcc341f06b89db6
  • Loading branch information
Martin DeMello authored and facebook-github-bot committed Nov 2, 2024
1 parent 778c00e commit 92632cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Include/internal/pycore_frame.h
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ _PyThreadState_GetFrame(PyThreadState *tstate)

/* For use by _PyFrame_GetFrameObject
Do not call directly. */
PyFrameObject *
PyAPI_FUNC(PyFrameObject *)
_PyFrame_MakeAndSetFrameObject(_PyInterpreterFrame *frame);

/* Gets the PyFrameObject for this frame, lazily
Expand Down

0 comments on commit 92632cb

Please sign in to comment.