fix template + global funcs
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8288 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
7d489fa3ea
commit
67051bcf15
1 changed files with 3 additions and 3 deletions
|
|
@ -330,14 +330,14 @@ Swig_cfunction_call(String_or_char *name, ParmList *parms) {
|
||||||
*/
|
*/
|
||||||
if (SwigType_istemplate(name)) {
|
if (SwigType_istemplate(name)) {
|
||||||
String *prefix = Swig_scopename_prefix(nname);
|
String *prefix = Swig_scopename_prefix(nname);
|
||||||
String *last = Swig_scopename_last(nname);
|
|
||||||
if (!prefix || Len(prefix) == 0) {
|
if (!prefix || Len(prefix) == 0) {
|
||||||
Printf(func,"%s(", last);
|
Printf(func,"%s(", nname);
|
||||||
} else {
|
} else {
|
||||||
|
String *last = Swig_scopename_last(nname);
|
||||||
Printf(func,"%s::SWIGTEMPLATEDISAMBIGUATOR %s(", prefix, last);
|
Printf(func,"%s::SWIGTEMPLATEDISAMBIGUATOR %s(", prefix, last);
|
||||||
|
Delete(last);
|
||||||
}
|
}
|
||||||
Delete(prefix);
|
Delete(prefix);
|
||||||
Delete(last);
|
|
||||||
} else {
|
} else {
|
||||||
Printf(func,"%s(", nname);
|
Printf(func,"%s(", nname);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue