more fixes for exceptions and ref.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5943 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
9f2060e608
commit
354b4f2ccb
2 changed files with 5 additions and 2 deletions
|
|
@ -421,7 +421,7 @@ void emit_action(Node *n, Wrapper *f) {
|
|||
if (em) {
|
||||
SwigType *et = Getattr(ep,"type");
|
||||
SwigType *etr = SwigType_typedef_resolve_all(et);
|
||||
if (SwigType_isreference(etr) || SwigType_ispointer(etr)) {
|
||||
if (SwigType_isreference(etr) || SwigType_ispointer(etr) || SwigType_isarray(etr)) {
|
||||
Printf(eaction,"catch(%s) {\n", SwigType_str(et, "_e"));
|
||||
} else {
|
||||
Printf(eaction,"catch(%s) {\n", SwigType_str(et, "&_e"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue