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:
Dave Beazley 2000-04-11 22:48:42 +00:00
commit 6d6243e279

View file

@ -108,10 +108,13 @@ Swig_emit(DOH *obj, void *clientdata) {
while (obj) {
tag = Getattr(obj,"tag");
actionobj = Getattr(rules,tag);
if (!actionobj) return -1;
action = (int (*)(DOH *, void *)) Data(actionobj);
ret = (*action)(obj,clientdata);
if (ret < 0) return -1;
if (actionobj) {
action = (int (*)(DOH *, void *)) Data(actionobj);
ret = (*action)(obj,clientdata);
if (ret < 0) return -1;
} else {
Printf(stderr,"warning: no action defined for '%s'\n", tag);
}
obj = Getattr(obj,"sibling");
}
return 0;