Modifications to the module system
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@961 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
ec168a60cb
commit
e90418262e
20 changed files with 561 additions and 571 deletions
|
|
@ -182,7 +182,7 @@ DOH *Swig_run_modules(DOH *node) {
|
|||
}
|
||||
ml = Getattr(LoadedModules,tag);
|
||||
if ((!ml) || (Len(ml) == 0)) {
|
||||
Printf(stderr,"No module for object '%s'\n", tag);
|
||||
Printf(stderr,"Internal error. No module defined for handling '%s'\n", tag);
|
||||
return 0;
|
||||
}
|
||||
newnode = 0;
|
||||
|
|
@ -192,7 +192,7 @@ DOH *Swig_run_modules(DOH *node) {
|
|||
m = (Module *) Data(Getitem(ml,i));
|
||||
assert(m);
|
||||
newnode = (*m->startfunc)(node);
|
||||
if (!newnode) return 0; /* Done */
|
||||
if (!newnode) return node; /* Done */
|
||||
newtag = Getattr(newnode,"tag");
|
||||
if (!newtag) {
|
||||
Printf(stderr,"Fatal error. Module '%s' returns untagged object.\n", m->modname);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue