diff options
author | Xavier Delacour <xavier.delacour@gmail.com> | 2009-01-10 00:29:37 +0000 |
---|---|---|
committer | Xavier Delacour <xavier.delacour@gmail.com> | 2009-01-10 00:29:37 +0000 |
commit | 63369773503eaf0c76c797182a06395ce5bdb961 (patch) | |
tree | 288d682a7bfe087244affa7362c158b8cf57294d | |
parent | b6e44f2427c95664d3d77c7d9d8afc79f9acbdc3 (diff) | |
download | swig-63369773503eaf0c76c797182a06395ce5bdb961.tar.gz |
Fix octave test allprotected.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11048 626c5289-ae23-0410-ae9c-e8d60b6d4f22
-rw-r--r-- | Source/Modules/octave.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/Modules/octave.cxx b/Source/Modules/octave.cxx index 4ad0a1b96..c9febcbba 100644 --- a/Source/Modules/octave.cxx +++ b/Source/Modules/octave.cxx @@ -40,6 +40,13 @@ public: OCTAVE():f_runtime(0), f_header(0), f_doc(0), f_wrappers(0), f_init(0), f_initbeforefunc(0), f_directors(0), f_directors_h(0), s_global_tab(0), s_members_tab(0), class_name(0) { + /* Add code to manage protected constructors and directors */ + director_prot_ctor_code = NewString(""); + Printv(director_prot_ctor_code, + "if ( $comparison ) { /* subclassed */\n", + " $director_new \n", + "} else {\n", " error(\"accessing abstract class or protected constructor\"); \n", " SWIG_fail;\n", "}\n", NIL); + enable_cplus_runtime_mode(); allow_overloading(); director_multiple_inheritance = 1; |