Don't use "this" method parameter for disambiguating overloads

When building the unique suffix for each member of the overloaded functions
set, don't use the first "this" parameter of the object methods in it as it's
the same for all of them and so is completely useless for disambiguation
purposes and just results in unnecessarily long and ugly names.

Use "_const" suffix for the methods differing by their const-ness only, this
is necessary now that we don't use "_pFoo" or "_pcFoo" in their names.

This makes it superfluous to check for c:objstruct in
functionWrapperAppendOverloaded() (and checking for it there was not enough
neither, as the changes in the test suite show, sometimes the "this" parameter
type still found its way into the generated wrappers).
This commit is contained in:
Vadim Zeitlin 2016-04-24 19:48:33 +02:00
commit 8e30abf7ab
3 changed files with 37 additions and 10 deletions

View file

@ -99,9 +99,9 @@ int main(int argc, const char *argv[]) {
Fl_Window *w = new_Fl_Window();
// Test whether macro worked for code extension
// and test optional function parameters
Fl_Window_show_pFl_Window(w);
Fl_Window_show_pFl_Window_pv(w, 0);
Fl_Window_show_pFl_Window_pv_pv(w, 0, 0);
Fl_Window_show(w);
Fl_Window_show_pv(w, 0);
Fl_Window_show_pv_pv(w, 0, 0);
delete_Fl_Window(w);
w = 0;