Fix octave test allprotected.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11048 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
b6e44f2427
commit
6336977350
1 changed files with 7 additions and 0 deletions
|
|
@ -40,6 +40,13 @@ public:
|
||||||
OCTAVE():f_runtime(0), f_header(0), f_doc(0), f_wrappers(0),
|
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),
|
f_init(0), f_initbeforefunc(0), f_directors(0), f_directors_h(0),
|
||||||
s_global_tab(0), s_members_tab(0), class_name(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();
|
enable_cplus_runtime_mode();
|
||||||
allow_overloading();
|
allow_overloading();
|
||||||
director_multiple_inheritance = 1;
|
director_multiple_inheritance = 1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue