diff options
author | Dave Beazley <dave-swig@dabeaz.com> | 2000-08-31 20:41:02 +0000 |
---|---|---|
committer | Dave Beazley <dave-swig@dabeaz.com> | 2000-08-31 20:41:02 +0000 |
commit | ee67a3e14698940b77ca8f139cef91bda616c939 (patch) | |
tree | db069b1c608fa6897a941e9fc3b4cb3cb146502a /Source | |
parent | 1bdc09434bc17e8e91c3c5a1dffe7250af9bd283 (diff) | |
download | swig-ee67a3e14698940b77ca8f139cef91bda616c939.tar.gz |
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
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SWIG1.1/cplus.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/SWIG1.1/cplus.cxx b/Source/SWIG1.1/cplus.cxx index 36b1d8bbc..3f3eae685 100644 --- a/Source/SWIG1.1/cplus.cxx +++ b/Source/SWIG1.1/cplus.cxx @@ -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(); |