changeset 16227:054d9e8f99b6

avoid deprecated function * mex.cc (call_mex): Use unwind_protect::add_fcn instead of the deprecated unwind_protect::add.
author John W. Eaton <jwe@octave.org>
date Fri, 08 Mar 2013 16:57:28 -0500
parents 40cf0a292b20
children e19b1632d7c1
files libinterp/interp-core/mex.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/interp-core/mex.cc	Fri Mar 08 15:58:56 2013 -0500
+++ b/libinterp/interp-core/mex.cc	Fri Mar 08 16:57:28 2013 -0500
@@ -2950,7 +2950,7 @@
 
   mex context (curr_mex_fcn);
 
-  frame.add (mex::cleanup, static_cast<void *> (&context));
+  frame.add_fcn (mex::cleanup, static_cast<void *> (&context));
 
   for (int i = 0; i < nargin; i++)
     argin[i] = context.make_value (args(i));