23.07.2012 Views

MATLAB C++ Math Library Reference

MATLAB C++ Math Library Reference

MATLAB C++ Math Library Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

mwSetErrorMsgHandler<br />

0mwSetErrorMsgHandler<br />

Purpose Register an error handling routine with the <strong>MATLAB</strong> <strong>C++</strong> <strong>Math</strong> <strong>Library</strong><br />

<strong>C++</strong> Prototype void mwSetErrorMsgHandler(mwErrorFunc f);<br />

Arguments mwErrorFunc f<br />

A pointer to an error handling routine that takes a char * and an mwBool as its<br />

arguments and returns void.<br />

typedef void (*mwErrorFunc)(const char *, mwBool);<br />

Description If you want to separate error messages from ‘‘ordinary’’ output, call the function<br />

mwSetErrorMsgHandler() to replace the default handler.<br />

mwSetErrorMsgHandler sets the error handling routine. The error handler is<br />

responsible for handling all error message output.<br />

See Also mwDisplayException, mwGetErrorMsgHandler, mwGetExceptionMsgHandler,<br />

mwSetExceptionMsgHandler<br />

414

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!