SWIGPython.i: handle NumPy integer types
Description
Extend the SWIG wrappings to handle NumPy integer types. Since all SWIG integer type conversions ultimately used either SWIG_AsVal_long()
or SWIG_AsVal_unsigned_SS_long()
, it is most straightforward to replace those functions with custom versions using C preprocessor macros. The NumPy integer type conversion code snippets are taken from here.
Closes #3 (closed)
API Changes and Justification
Backwards Compatible Changes
-
This change does not modify any class/function/struct/type definitions in a public C header file or any Python class/function definitions -
This change adds new classes/functions/structs/types to a public C header file or Python module
Backwards Incompatible Changes
-
This change modifies an existing class/function/struct/type definition in a public C header file or Python module -
This change removes an existing class/function/struct/type from a public C header file or Python module