add support for template_extmode, ie, the emitonlychildren feature

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6804 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-12-01 00:50:06 +00:00
commit b644501be6
3 changed files with 30 additions and 22 deletions

View file

@ -1405,8 +1405,11 @@ public:
* ------------------------------------------------------------ */
virtual int classDeclaration(Node *n) {
String *symname = Getattr(n,"sym:name");
Setattr(n,"php:proxy",symname);
if (!Getattr(n,"feature:onlychildren")) {
String *symname = Getattr(n,"sym:name");
Setattr(n,"php:proxy",symname);
}
return Language::classDeclaration(n);
}