Remove warning: 'self' is a ruby keyword, renaming to 'C_self' since improving autodoc for Ruby
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12882 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
a082b1e069
commit
a5f8ffba91
4 changed files with 40 additions and 43 deletions
|
|
@ -657,9 +657,9 @@ private:
|
|||
Printf(doc, " %s.new(%s)", class_name, paramList);
|
||||
else
|
||||
Printf(doc, " %s.new", class_name);
|
||||
} else
|
||||
Printf(doc, " %s.new(%s)", class_name,
|
||||
make_autodocParmList(n, showTypes));
|
||||
} else {
|
||||
Printf(doc, " %s.new(%s)", class_name, make_autodocParmList(n, showTypes));
|
||||
}
|
||||
break;
|
||||
|
||||
case AUTODOC_DTOR:
|
||||
|
|
@ -2640,9 +2640,12 @@ public:
|
|||
current = CONSTRUCTOR_ALLOCATE;
|
||||
Swig_name_register("construct", "%n%c_allocate");
|
||||
|
||||
|
||||
Language::constructorHandler(n);
|
||||
|
||||
String* docs = docstring(n, AUTODOC_CTOR);
|
||||
Printf(f_wrappers, "%s", docs);
|
||||
Delete(docs);
|
||||
|
||||
/*
|
||||
* If we're wrapping the constructor of a C++ director class, prepend a new parameter
|
||||
* to receive the scripting language object (e.g. 'self')
|
||||
|
|
@ -2665,13 +2668,7 @@ public:
|
|||
Delete(self);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Now do the instance initialize method */
|
||||
String* docs = docstring(n, AUTODOC_CTOR);
|
||||
Printf(f_wrappers, "%s", docs);
|
||||
Delete(docs);
|
||||
|
||||
current = CONSTRUCTOR_INITIALIZE;
|
||||
Swig_name_register("construct", "new_%n%c");
|
||||
Language::constructorHandler(n);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue