Revert "csharp : noexcept method can't raise Swig::DirectorPureVirtualException"
This reverts commit 9dcf10138e.
This commit is contained in:
parent
9dcf10138e
commit
e429a891c9
1 changed files with 1 additions and 7 deletions
|
|
@ -403,7 +403,6 @@ public:
|
|||
|
||||
if (directorsEnabled()) {
|
||||
Printf(f_runtime, "#define SWIG_DIRECTORS\n");
|
||||
Printf(f_runtime, "#include <assert.h>\n");
|
||||
|
||||
/* Emit initial director header and director code: */
|
||||
Swig_banner(f_directors_h);
|
||||
|
|
@ -3936,12 +3935,7 @@ public:
|
|||
}
|
||||
Delete(super_call);
|
||||
} else {
|
||||
if (Getattr(n, "noexcept")) {
|
||||
Printf(w->code, " //can't throw exception here\n");
|
||||
Printf(w->code, " assert(0 && \"swig DirectorPureVirtualException %s::%s\");", SwigType_namestr(c_classname), SwigType_namestr(name));
|
||||
} else {
|
||||
Printf(w->code, " throw Swig::DirectorPureVirtualException(\"%s::%s\");\n", SwigType_namestr(c_classname), SwigType_namestr(name));
|
||||
}
|
||||
Printf(w->code, " throw Swig::DirectorPureVirtualException(\"%s::%s\");\n", SwigType_namestr(c_classname), SwigType_namestr(name));
|
||||
}
|
||||
|
||||
if (!ignored_method)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue