saves the rawval constant attribute when presents. this simplifies the generation of typemaps for char/strings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5679 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
1f6d978e32
commit
4e7f391eba
1 changed files with 2 additions and 0 deletions
|
|
@ -1165,6 +1165,7 @@ constant_directive : CONSTANT ID EQUAL definetype SEMI {
|
|||
Setattr($$,"name",$2);
|
||||
Setattr($$,"type",NewSwigType($4.type));
|
||||
Setattr($$,"value",$4.val);
|
||||
if ($4.rawval) Setattr($$,"rawval", $4.rawval);
|
||||
Setattr($$,"storage","%constant");
|
||||
Setattr($$,"feature:immutable","1");
|
||||
add_symbols($$);
|
||||
|
|
@ -1188,6 +1189,7 @@ constant_directive : CONSTANT ID EQUAL definetype SEMI {
|
|||
Setattr($$,"name",$3.id);
|
||||
Setattr($$,"type",$2);
|
||||
Setattr($$,"value",$4.val);
|
||||
if ($4.rawval) Setattr($$,"rawval", $4.rawval);
|
||||
Setattr($$,"storage","%constant");
|
||||
Setattr($$,"feature:immutable","1");
|
||||
add_symbols($$);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue