Fixed C++ code generation so that constructors for abstract classes aren't

generated (note: this is a sick hack).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@773 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2000-08-31 20:41:02 +00:00
commit ee67a3e146

View file

@ -312,6 +312,7 @@ public:
input_file = file;
ccode = code;
if (abstract) return;
// Make a copy of the parameter list and upgrade its types
l = CopyParmList(parms);
@ -603,6 +604,7 @@ public:
void emit_decls() {
CPP_member *m = members;
abstract = is_abstract;
/* Printf(stdout,"class %s. Abstract = %d\n", classname, is_abstract); */
while (m) {
cpp_id = m->id;
m->emit();