Fix for enum forward declarations

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6117 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2004-08-23 20:10:51 +00:00
commit 4c02e7cc0e
4 changed files with 42 additions and 1 deletions

View file

@ -795,6 +795,17 @@ class TypePass : private Dispatcher {
return SWIG_OK;
}
/* ------------------------------------------------------------
* enumforwardDeclaration()
* ------------------------------------------------------------ */
virtual int enumforwardDeclaration(Node *n) {
// Use enumDeclaration() to do all the hard work.
// Note that no children can be emitted in a forward declaration as there aren't any.
return enumDeclaration(n);
}
/* ------------------------------------------------------------
* usingDeclaration()
* ------------------------------------------------------------ */