Ct_error_reporter ct_install_error_reporter( Ct_error_reporter pR );
For Embedded Cheap Threads: if you use ecterror.c instead of cterror,c, the default behaviour is to silently discard a message.
Depending on the environment, neither treatment may be appropriate. By calling ct_install_error_reporter() the application can install its own customized error reporting function, which may display the message in a popup window, write it to a file, log it in a database, or whatever.
The return value enables the application to install an error reporting function temporarily and then restore the previous function.
If it receives a NULL parameter, ct_install_error_reporter() reinstalls the default error reporting function.
Cheap Threads does not change the error reporting function without an explicit call to ct_install_error_reporter(). In particular it does not restore the default function when the scheduler terminates, nor when the application calls ct_clear().