Types generated with and without -builtin are not compatible. Mixing them in a common type list leads to crashes. Avoid this by using different capsule names: "type_pointer_capsule" without -builtin and "type_pointer_capsule_builtin" with. See #1684
15 lines
292 B
OpenEdge ABL
15 lines
292 B
OpenEdge ABL
// Test swig_runtime_data with and without -builtin
|
|
|
|
%module python_runtime_data_builtin
|
|
|
|
%inline %{
|
|
#ifdef SWIGPYTHON_BUILTIN
|
|
bool is_python_builtin() { return true; }
|
|
#else
|
|
bool is_python_builtin() { return false; }
|
|
#endif
|
|
%}
|
|
|
|
%include std_vector.i
|
|
|
|
%template(vectord) std::vector<double>;
|