implement the 'allowexcept' feature for global variables
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8580 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
7f327d7c46
commit
1bb180523b
3 changed files with 37 additions and 8 deletions
|
|
@ -1498,7 +1498,7 @@ MODULA3 ():
|
|||
Swig_save ("functionWrapper", n, "wrap:action", NIL);
|
||||
|
||||
// below based on Swig_VargetToFunction()
|
||||
SwigType *ty = Swig_wrapped_var_type (Getattr (n, "type"));
|
||||
SwigType *ty = Swig_wrapped_var_type (Getattr (n, "type"), use_naturalvar_mode(n));
|
||||
Setattr (n, "wrap:action",
|
||||
NewStringf ("result = (%s) %s;\n", SwigType_lstr (ty, 0),
|
||||
Getattr (n, "value")));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue