Fix mjpython after breakage from 496f6b47fc.
PiperOrigin-RevId: 870253531 Change-Id: Icfbfaed41d4cdd3f8472c37a254cb7b1f2a32d7b
This commit is contained in:
committed by
Copybara-Service
parent
538c131415
commit
2efca34f58
@@ -50,6 +50,7 @@ constexpr rlim_t kThreadStackSize = 0x1000000;
|
|||||||
struct {
|
struct {
|
||||||
#define CPYTHON_FN(fname) decltype(&::fname) fname
|
#define CPYTHON_FN(fname) decltype(&::fname) fname
|
||||||
|
|
||||||
|
// LINT.IfChange(CPYTHON_FN)
|
||||||
// go/keep-sorted start
|
// go/keep-sorted start
|
||||||
CPYTHON_FN(PyConfig_Clear);
|
CPYTHON_FN(PyConfig_Clear);
|
||||||
CPYTHON_FN(PyConfig_InitPythonConfig);
|
CPYTHON_FN(PyConfig_InitPythonConfig);
|
||||||
@@ -63,6 +64,7 @@ struct {
|
|||||||
CPYTHON_FN(Py_InitializeFromConfig);
|
CPYTHON_FN(Py_InitializeFromConfig);
|
||||||
CPYTHON_FN(Py_RunMain);
|
CPYTHON_FN(Py_RunMain);
|
||||||
// go/keep-sorted end
|
// go/keep-sorted end
|
||||||
|
// LINT.ThenChange(:CPYTHON_INITFN)
|
||||||
|
|
||||||
#undef CPYTHON_FN
|
#undef CPYTHON_FN
|
||||||
} cpython;
|
} cpython;
|
||||||
@@ -272,6 +274,7 @@ int main(int argc, char** argv) {
|
|||||||
} \
|
} \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// LINT.IfChange(CPYTHON_INITFN)
|
||||||
// go/keep-sorted start
|
// go/keep-sorted start
|
||||||
CPYTHON_INITFN(PyConfig_Clear);
|
CPYTHON_INITFN(PyConfig_Clear);
|
||||||
CPYTHON_INITFN(PyConfig_InitPythonConfig);
|
CPYTHON_INITFN(PyConfig_InitPythonConfig);
|
||||||
@@ -279,10 +282,13 @@ int main(int argc, char** argv) {
|
|||||||
CPYTHON_INITFN(PyGILState_Ensure);
|
CPYTHON_INITFN(PyGILState_Ensure);
|
||||||
CPYTHON_INITFN(PyGILState_Release);
|
CPYTHON_INITFN(PyGILState_Release);
|
||||||
CPYTHON_INITFN(PyRun_SimpleStringFlags);
|
CPYTHON_INITFN(PyRun_SimpleStringFlags);
|
||||||
|
CPYTHON_INITFN(PyStatus_Exception);
|
||||||
|
CPYTHON_INITFN(Py_ExitStatusException);
|
||||||
CPYTHON_INITFN(Py_FinalizeEx);
|
CPYTHON_INITFN(Py_FinalizeEx);
|
||||||
CPYTHON_INITFN(Py_InitializeFromConfig);
|
CPYTHON_INITFN(Py_InitializeFromConfig);
|
||||||
CPYTHON_INITFN(Py_RunMain);
|
CPYTHON_INITFN(Py_RunMain);
|
||||||
// go/keep-sorted end
|
// go/keep-sorted end
|
||||||
|
// LINT.ThenChange(:CPYTHON_FN)
|
||||||
|
|
||||||
#undef CPYTHON_INITFN
|
#undef CPYTHON_INITFN
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user