Can I create my own functions in C++?
Yes, by using the C compatibility features found in C++.
Most notably, you need to put extern “C” before each function that is going to be called by the Python interpreter. To write portable code, avoid using global or static C++ objects with constructors.
CATEGORY: extending