check value len
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8415 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
392799385f
commit
609d1e6a5c
1 changed files with 2 additions and 1 deletions
|
|
@ -363,8 +363,9 @@ static void add_symbols(Node *n) {
|
|||
Setattr(n,k_kind,"typedef");
|
||||
} else {
|
||||
SwigType *type = Getattr(n, k_type);
|
||||
String *value = Getattr(n,k_value);
|
||||
Setattr(n,k_kind,"variable");
|
||||
if (Getattr(n,k_value)) {
|
||||
if (value && Len(value)) {
|
||||
Setattr(n,"hasvalue","1");
|
||||
}
|
||||
if (type && !SwigType_ismutable(type)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue