Fixed [ 642112 ] Constants char bug

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4402 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2003-02-26 19:13:28 +00:00
commit eb54f48b97
2 changed files with 8 additions and 2 deletions

View file

@ -402,7 +402,11 @@ int Language::constantDirective(Node *n) {
if (!value) {
value = Copy(name);
} else {
value = NewStringf("%(escape)s", value);
if (checkAttribute(n,"type","char")) {
value = NewString(value);
} else {
value = NewStringf("%(escape)s", value);
}
}
Setattr(n,"value", value);
this->constantWrapper(n);