Made the mex wrapper flush output streams to the matlab console when the mex

function ends.
This commit is contained in:
Davis King 2016-04-20 08:39:49 -04:00
parent 168574bd6c
commit 060e876b86
1 changed files with 3 additions and 0 deletions

View File

@ -4506,6 +4506,9 @@ void mexFunction( int nlhs, mxArray *plhs[],
#endif #endif
mex_binding::call_mex_function(mex_function, nlhs, plhs, nrhs, prhs); mex_binding::call_mex_function(mex_function, nlhs, plhs, nrhs, prhs);
cout << flush;
cerr << flush;
} }
// ---------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------