jaeandersson / swig

SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages.
http://www.swig.org
Other
23 stars 19 forks source link

__ref__,__deref__ handling #97

Open KrisThielemans opened 3 years ago

KrisThielemans commented 3 years ago

https://github.com/jaeandersson/swig/blob/cd3f6c5fe9ed273fcc981dcae3e8b50d51529664/Lib/swig.swg#L426-L428 needs to be changed for MATLAB, as it doesn't allow functions starting with _. This creates an error in the test-suite

ERROR: Error: File: /home/kthielem/devel/build/swig/Examples/test-suite/matlab/+smart_pointer_member/Bar.m Line: 17 Column: 26
Invalid text character. Check for unsupported symbol, invisible character, or pasting of non-ASCII characters.
   smart_pointer_member failed

That seems trivial, but then the question is what to do with them... Octave has https://github.com/jaeandersson/swig/blob/cd3f6c5fe9ed273fcc981dcae3e8b50d51529664/Lib/octave/octtypemaps.swg#L80-L90 which might be related? Maybe not as this is stuff with SMARTPOINTER, which we currently don't have in the Matlab module.