User`s guide
7 Libraries
However, the default implementation of the print handler is slightly different.
It sends the output to the standard error output stream, but if the string does
not end with carriage return, the error handler adds one. If you replace the
default error handler with one of your own, y ou should perform this check as
well, or some of the error messages printed by the MCR will not be properly
formatted.
Caution The error handler, despite its name, does not handle the actual
errors, but rather the message produced after the errors have been caught
and handled inside the M CR. You cannot use this function to modify the error
handling behavior of the MCR -- use the
try and catch statements in your
M-files if you want to control how a MATLAB Compiler generated application
responds to an error condition.
Note If you provide alternate C++ implementations of either
mclDefaultPrintHandler or m clD efaultErrorHandler, then functions must
be declared
extern "C". For example:
extern "C" int myPrintHandler(const char *s);
Omitting extern "C" will genera te warnings on the Sola ris plat form.
Functions Generated from M-Files
For each M-file specified on the M ATLAB Compiler command line, MATLAB
Compiler ge ne rate s two functions, the
mlx function and the mlf function.
Each o f these generated functions p erforms the same action (calls your M-file
function). The two functions have different names and present different
interfaces. The name of each function is based on the name of the first
functionintheM-file(
sierpinski, in this example); each function begins
with a different three-letter prefix.
7-28