swig exception hander use $action resolves #357
Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
parent
bd3efdc322
commit
0772eaaf6a
|
|
@ -23,7 +23,7 @@
|
|||
// This notice may not be removed or altered from any source distribution.
|
||||
|
||||
%exception {
|
||||
try { $function }
|
||||
try { $action }
|
||||
catch (std::bad_alloc &) {
|
||||
fprintf(stderr, "Error: out of memory.\n");
|
||||
exit(1);
|
||||
|
|
|
|||
Loading…
Reference in New Issue