Skip to content
Snippets Groups Projects
Commit b9c7bb30 authored by Julien Malik's avatar Julien Malik
Browse files

BUG: do not throw exception from a C callback

parent 6e2da1a9
No related branches found
No related tags found
Loading
......@@ -35,22 +35,25 @@ extern "C"
*/
void error_callback(const char *msg, void *client_data)
{
(void) msg;
(void) client_data;
itkGenericExceptionMacro(<< "OpenJPEG error: " << msg);
otbMsgDevMacro(<< "OpenJPEG error: " << msg);
}
/**
sample warning debug callback expecting no client object
*/
void warning_callback(const char *msg, void *client_data)
{
(void) msg;
(void) client_data;
otbGenericMsgDebugMacro(<< "OpenJPEG warning: " << msg);
otbMsgDevMacro(<< "OpenJPEG warning: " << msg);
}
/**
sample debug callback expecting no client object
*/
void info_callback(const char *msg, void *client_data)
{
(void) msg;
(void) client_data;
otbMsgDevMacro(<< "OpenJPEG info: " << msg);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment