Added warning message.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@406 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
0b454425a4
commit
6d6243e279
1 changed files with 7 additions and 4 deletions
|
|
@ -108,10 +108,13 @@ Swig_emit(DOH *obj, void *clientdata) {
|
||||||
while (obj) {
|
while (obj) {
|
||||||
tag = Getattr(obj,"tag");
|
tag = Getattr(obj,"tag");
|
||||||
actionobj = Getattr(rules,tag);
|
actionobj = Getattr(rules,tag);
|
||||||
if (!actionobj) return -1;
|
if (actionobj) {
|
||||||
action = (int (*)(DOH *, void *)) Data(actionobj);
|
action = (int (*)(DOH *, void *)) Data(actionobj);
|
||||||
ret = (*action)(obj,clientdata);
|
ret = (*action)(obj,clientdata);
|
||||||
if (ret < 0) return -1;
|
if (ret < 0) return -1;
|
||||||
|
} else {
|
||||||
|
Printf(stderr,"warning: no action defined for '%s'\n", tag);
|
||||||
|
}
|
||||||
obj = Getattr(obj,"sibling");
|
obj = Getattr(obj,"sibling");
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue