support/ignore multi-inheritance directors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6735 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
eb222e7a77
commit
f678d1eed0
4 changed files with 12 additions and 0 deletions
|
|
@ -149,6 +149,10 @@ class JAVA : public Language {
|
||||||
n_directors(0),
|
n_directors(0),
|
||||||
emitted_connect(false)
|
emitted_connect(false)
|
||||||
{
|
{
|
||||||
|
/* by now, multiple inheritance in directors is disabled, this
|
||||||
|
should be easy to implement though */
|
||||||
|
director_multiple_inheritance = 0;
|
||||||
|
director_language = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -----------------------------------------------------------------------------
|
/* -----------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -77,6 +77,8 @@ public:
|
||||||
"} else {\n",
|
"} else {\n",
|
||||||
" failwith(\"accessing abstract class or protected constructor\"); \n",
|
" failwith(\"accessing abstract class or protected constructor\"); \n",
|
||||||
"}\n", NIL);
|
"}\n", NIL);
|
||||||
|
director_multiple_inheritance = 1;
|
||||||
|
director_language = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -94,6 +94,8 @@ public:
|
||||||
" \"accessing abstract class or protected constructor\"); \n",
|
" \"accessing abstract class or protected constructor\"); \n",
|
||||||
" SWIG_fail;\n",
|
" SWIG_fail;\n",
|
||||||
"}\n", NIL);
|
"}\n", NIL);
|
||||||
|
director_multiple_inheritance = 1;
|
||||||
|
director_language = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ------------------------------------------------------------
|
/* ------------------------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -195,6 +195,8 @@ public:
|
||||||
" rb_raise(rb_eRuntimeError,\"accessing abstract class or protected constructor\"); \n",
|
" rb_raise(rb_eRuntimeError,\"accessing abstract class or protected constructor\"); \n",
|
||||||
" return Qnil;\n",
|
" return Qnil;\n",
|
||||||
"}\n", NIL);
|
"}\n", NIL);
|
||||||
|
director_multiple_inheritance = 0;
|
||||||
|
director_language = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ---------------------------------------------------------------------
|
/* ---------------------------------------------------------------------
|
||||||
|
|
@ -226,6 +228,7 @@ public:
|
||||||
Swig_mark_arg(i);
|
Swig_mark_arg(i);
|
||||||
} else if (strcmp(argv[i],"-minherit") == 0) {
|
} else if (strcmp(argv[i],"-minherit") == 0) {
|
||||||
multipleInheritance = true;
|
multipleInheritance = true;
|
||||||
|
director_multiple_inheritance = 1;
|
||||||
Swig_mark_arg(i);
|
Swig_mark_arg(i);
|
||||||
} else if (strcmp(argv[i],"-prefix") == 0) {
|
} else if (strcmp(argv[i],"-prefix") == 0) {
|
||||||
if (argv[i+1]) {
|
if (argv[i+1]) {
|
||||||
|
|
@ -354,6 +357,7 @@ public:
|
||||||
}
|
}
|
||||||
if (Getattr(options, "ruby_minherit")) {
|
if (Getattr(options, "ruby_minherit")) {
|
||||||
multipleInheritance = true;
|
multipleInheritance = true;
|
||||||
|
director_multiple_inheritance = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue