Renamed Language::SetNoneComparison() to setSubclassInstanceCheck(),
because that name better reflects what the function's trying to accomplish (test whether the object for which the constructor's being called is an instance of the class, or an instance of one of its subclasses). git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4722 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
8a7c4da416
commit
bb521ec9b2
4 changed files with 7 additions and 8 deletions
|
|
@ -396,7 +396,7 @@ public:
|
|||
}
|
||||
|
||||
/* Set comparison with none for ConstructorToFunction */
|
||||
SetNoneComparison( NewString( "$arg != Py_None" ) );
|
||||
setSubclassInstanceCheck(NewString("$arg != Py_None"));
|
||||
|
||||
/* Initialize all of the output files */
|
||||
String *outfile = Getattr(n,"outfile");
|
||||
|
|
@ -747,7 +747,7 @@ public:
|
|||
|
||||
/* Keyword argument handling */
|
||||
if (Len(pn)) {
|
||||
Printf(kwargs,"\"%s\",", pn);
|
||||
Printf(kwargs,"(char *) \"%s\",", pn);
|
||||
} else {
|
||||
Printf(kwargs,"\"arg%d\",", i+1);
|
||||
}
|
||||
|
|
@ -1935,7 +1935,7 @@ public:
|
|||
int use_director = Swig_directorclass(n);
|
||||
|
||||
/*
|
||||
* If we wrapping the constructor of a C++ director class, prepend a new parameter
|
||||
* If we're wrapping the constructor of a C++ director class, prepend a new parameter
|
||||
* to receive the scripting language object (e.g. 'self')
|
||||
*
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue