Rename fixes to STL.
Removed object reporting in non-verbose from newobject demos. Made wstring treat them as normal strings as advertised. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9771 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
4cd98d3865
commit
81c84b7e8c
16 changed files with 131 additions and 125 deletions
|
|
@ -200,3 +200,24 @@ namespace swig {
|
|||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Common renames for STL functions.
|
||||
// Sadly, SWIG's name matching is still primitive, so:
|
||||
//
|
||||
// std::*::push_back is not valid
|
||||
//
|
||||
// Also, since these get run inside templates, putting
|
||||
// the rename inside the template %extend section is no good
|
||||
// either.
|
||||
//
|
||||
|
||||
%rename("delete") *::__delete__;
|
||||
%rename("reject!") *::reject_bang;
|
||||
%rename("map!") *::map_bang;
|
||||
%rename("push") *::push_back;
|
||||
%rename("pop") *::pop_back;
|
||||
%rename("empty?") *::empty;
|
||||
%rename("include?" ) *::__contains__ const;
|
||||
%rename("has_key?" ) *::has_key const;
|
||||
%alias push "<<";
|
||||
%alias push_back "<<";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue