Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 18a1d95b authored by hhakim's avatar hhakim
Browse files

Fix bug in mex cpp code for matfaust.Faust.display(): Windows version prints...

Fix bug in mex cpp code for matfaust.Faust.display(): Windows version prints nothing in Matlab terminal.
parent de9cf834
Branches
Tags
No related merge requests found
......@@ -291,7 +291,10 @@ void save(Faust::TransformHelper<SCALAR,Cpu>* core_ptr, int nargs, const mxArray
{
if (nlhs != 0 || nrhs != 2)
mexErrMsgTxt("disp: Unexpected arguments");
core_ptr->display();
//core_ptr->display(); // doesn't work on windows,
// matlab terminal doesn't receive the mex lib std output
// we must use mexPrintf() to display content
mexPrintf(core_ptr->to_string().c_str());
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment