From 21ce6f7ec383d56bf308787002072ec06ab9b229 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Thu, 7 Mar 2024 13:26:04 +0100 Subject: [PATCH] gh-110850: Expose _PyTime_*Unchecked functions for now --- Include/cpython/pytime.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Include/cpython/pytime.h b/Include/cpython/pytime.h index d8244700d614ce..aed9c7e42cfde8 100644 --- a/Include/cpython/pytime.h +++ b/Include/cpython/pytime.h @@ -16,6 +16,14 @@ PyAPI_FUNC(int) PyTime_Monotonic(PyTime_t *result); PyAPI_FUNC(int) PyTime_PerfCounter(PyTime_t *result); PyAPI_FUNC(int) PyTime_Time(PyTime_t *result); +// Expose internal API until we figure out what to do about it, +// see https://github.com/capi-workgroup/decisions/issues/15 +// Do not use; like any names with a leading underscore, these may go away +// at any time. +PyAPI_FUNC(PyTime_t) _PyTime_TimeUnchecked(void); +PyAPI_FUNC(PyTime_t) _PyTime_MonotonicUnchecked(void); +PyAPI_FUNC(PyTime_t) _PyTime_PerfCounterUnchecked(void); + #ifdef __cplusplus } #endif