Commit ead735d0 authored by Davis King's avatar Davis King

Made printing to cout or cerr check for matlab ctrl+c and throw an exception

if so.  This way, if you have a long running mex file it will be killable if
it is periodically printing.
parent 81eb18a4
......@@ -2951,6 +2951,8 @@ namespace mex_binding
mexPrintf("%s",&buf[0]);
mexEvalString("drawnow"); // flush print to screen
pbump(-num);
check_for_matlab_ctrl_c();
}
return 0;
}
......@@ -3007,6 +3009,8 @@ namespace mex_binding
mexWarnMsgTxt(&buf[0]);
mexEvalString("drawnow"); // flush print to screen
pbump(-num);
check_for_matlab_ctrl_c();
}
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment