diff options
author | prettyboy <prettyboy@yandex-team.com> | 2023-09-08 10:08:57 +0300 |
---|---|---|
committer | prettyboy <prettyboy@yandex-team.com> | 2023-09-08 10:39:21 +0300 |
commit | 329f805999a3b41e406959a17cf35ab193ef05a5 (patch) | |
tree | 9a3059df4d544b6c9d6f474344e52f65bd13b4c1 /library/cpp/pybind/init.h | |
parent | 02ea6261088be81bbc455933cecf8b41726946c1 (diff) | |
download | ydb-329f805999a3b41e406959a17cf35ab193ef05a5.tar.gz |
Revert commit rXXXXXX,[build/plugins/ytest] Allow prebuilt linters for opensource
Diffstat (limited to 'library/cpp/pybind/init.h')
-rw-r--r-- | library/cpp/pybind/init.h | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/library/cpp/pybind/init.h b/library/cpp/pybind/init.h deleted file mode 100644 index 58874574ed6..00000000000 --- a/library/cpp/pybind/init.h +++ /dev/null @@ -1,25 +0,0 @@ -#pragma once - -#define PY_SSIZE_T_CLEAN -#include <Python.h> - -#include "ptr.h" - -namespace NPyBind { -#if PY_MAJOR_VERSION >= 3 - -#define PYBIND_MODINIT(name) PyMODINIT_FUNC PyInit_##name() - - inline PyObject* ModInitReturn(TPyObjectPtr&& modptr) { - return modptr.Release(); - } - -#else - -#define PYBIND_MODINIT(name) PyMODINIT_FUNC init##name() - - inline void ModInitReturn(TPyObjectPtr&&) { - } - -#endif -} |