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:
parent
062a811230
commit
eb54f48b97
2 changed files with 8 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue