more on the template_extmode, plus using apply when using -classic

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6805 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-12-01 00:51:44 +00:00
commit 0b53cb5242

View file

@ -153,6 +153,7 @@ public:
Swig_mark_arg(i);
} else if (strcmp(argv[i],"-classic") == 0) {
classic = 1;
apply = 1;
Swig_mark_arg(i);
} else if (strcmp(argv[i],"-cpluscast") == 0) {
/* Turn on new value wrapper mpde */
@ -1865,7 +1866,7 @@ public:
* ------------------------------------------------------------ */
virtual int classDeclaration(Node *n) {
if (shadow) {
if (shadow && !Getattr(n,"feature:onlychildren")) {
Node *mod = Getattr(n,"module");
if (mod) {
String *importname = NewString("");