Add support for const references to pointers

They're used in some unit tests and we can support them by handling them
just as pointers in C++ wrappers (this was already the case for C
wrappers).
This commit is contained in:
Vadim Zeitlin 2021-12-08 03:26:44 +01:00
commit 1fd4c647b8
3 changed files with 11 additions and 4 deletions

View file

@ -119,6 +119,7 @@ same_macro_all_primitive_types_but_void(cref_as_value,ctype);
// objects
%typemap(ctype) SWIGTYPE "$&resolved_type*"
%typemap(ctype) SWIGTYPE * "$resolved_type*"
%typemap(ctype) SWIGTYPE * const & "$resolved_type*"
%typemap(ctype) SWIGTYPE & "$*resolved_type*"
%typemap(ctype) SWIGTYPE [ANY] "$resolved_type*"
%typemap(ctype) SWIGTYPE * [ANY] "$resolved_type**"