1 | #pragma once |
---|---|
2 | |
3 | #include <Python.h> |
4 | |
5 | inline PyCFunction castPyCFunctionWithKeywords(PyCFunctionWithKeywords func) { |
6 | // NOLINTNEXTLINE(modernize-redundant-void-arg) |
7 | return (PyCFunction)(void (*)(void))func; |
8 | } |
9 |
1 | #pragma once |
---|---|
2 | |
3 | #include <Python.h> |
4 | |
5 | inline PyCFunction castPyCFunctionWithKeywords(PyCFunctionWithKeywords func) { |
6 | // NOLINTNEXTLINE(modernize-redundant-void-arg) |
7 | return (PyCFunction)(void (*)(void))func; |
8 | } |
9 |