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:
parent
1bdc09434b
commit
ee67a3e146
1 changed files with 2 additions and 0 deletions
|
|
@ -312,6 +312,7 @@ public:
|
||||||
input_file = file;
|
input_file = file;
|
||||||
ccode = code;
|
ccode = code;
|
||||||
|
|
||||||
|
if (abstract) return;
|
||||||
// Make a copy of the parameter list and upgrade its types
|
// Make a copy of the parameter list and upgrade its types
|
||||||
|
|
||||||
l = CopyParmList(parms);
|
l = CopyParmList(parms);
|
||||||
|
|
@ -603,6 +604,7 @@ public:
|
||||||
void emit_decls() {
|
void emit_decls() {
|
||||||
CPP_member *m = members;
|
CPP_member *m = members;
|
||||||
abstract = is_abstract;
|
abstract = is_abstract;
|
||||||
|
/* Printf(stdout,"class %s. Abstract = %d\n", classname, is_abstract); */
|
||||||
while (m) {
|
while (m) {
|
||||||
cpp_id = m->id;
|
cpp_id = m->id;
|
||||||
m->emit();
|
m->emit();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue