/* @copyright Russell Standish 2025 @author Russell Standish This file is part of Classdesc Open source licensed under the MIT license. See LICENSE for details. */ // implements stubs to link to the Windows python dynamic library #include "pythonCAPI.h" #include #include static HINSTANCE pythonExe=GetModuleHandle("python3"); // On Windows, python3 refers to the stable ABI. checkSymbol provides // an important check that all symbols referenced here are available // in the stable ABI. This check should be performed prior to release. static void checkSymbol(const char* name) { auto symbol=GetProcAddress(pythonExe, name); if (!symbol) std::cerr<