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

BUG: do not throw inside a C callback

parent ac22e715
No related branches found
No related tags found
No related merge requests found
......@@ -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