Correct prefix handling - bug introduced in rev 13886
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13945 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
7ca0497647
commit
6cd247d653
3 changed files with 3 additions and 5 deletions
|
|
@ -101,10 +101,9 @@ public:
|
|||
}
|
||||
|
||||
// If a prefix has been specified make sure it ends in a '_' (not actually used!)
|
||||
|
||||
if (prefix) {
|
||||
const char *px = Char(prefix);
|
||||
if (px[Len(prefix)] != '_')
|
||||
if (px[Len(prefix) - 1] != '_')
|
||||
Printf(prefix, "_");
|
||||
} else
|
||||
prefix = NewString("swig_");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue