diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2023-10-03 15:02:38 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2023-10-03 16:04:35 +0300 |
commit | 5478b8f55cc7055a4861c4030e0c401b5c72714c (patch) | |
tree | 3d003e5b4c1800297fcc491faffc9a006d174289 /library/cpp/pybind/init.h | |
parent | ca778ad9bfb31839b0f05a4995753bc61db648ad (diff) | |
download | ydb-5478b8f55cc7055a4861c4030e0c401b5c72714c.tar.gz |
Intermediate changes
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 -} |