PHP: fix for the cpp_namespace testcase
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11480 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
7e4b1a086d
commit
ad0428538d
1 changed files with 5 additions and 0 deletions
|
|
@ -1175,6 +1175,11 @@ public:
|
|||
assert(0 <= argno && argno < max_num_of_arguments);
|
||||
String *&pname = arg_names[argno];
|
||||
const char *pname_cstr = GetChar(p, "name");
|
||||
// Just get rid of the C++ namespace part for now.
|
||||
const char *ptr = NULL;
|
||||
if ((ptr = strrchr(pname_cstr, ':'))) {
|
||||
pname_cstr = ptr + 1;
|
||||
}
|
||||
if (!pname_cstr) {
|
||||
// Unnamed parameter, e.g. int foo(int);
|
||||
} else if (pname == NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue