Patch #3260265 fixing overloading of non-primitive types and integers in Perl 5.12 and later
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12691 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
527c3e0552
commit
ea00ff974f
4 changed files with 26 additions and 3 deletions
|
|
@ -208,3 +208,9 @@ long long ll(long long ull) { return ull; }
|
|||
}
|
||||
|
||||
#endif
|
||||
|
||||
%inline %{
|
||||
int int_object(Spam *s) { return 999; }
|
||||
int int_object(int c) { return c; }
|
||||
%}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue