fix macro with empy args

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6751 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-11-18 00:25:23 +00:00
commit b574e77f6b
3 changed files with 6 additions and 2 deletions

View file

@ -618,7 +618,7 @@ expand_macro(String_or_char *name, List *args)
}
/* If the macro expects arguments, but none were supplied, we leave it in place */
if (!args && (margs)) {
if (!args && (margs) && Len(margs) > 0) {
return NewString(name);
}