Commit f75740f4 authored by claes's avatar claes

Change in message callback

parent 6e5dfa13
/* /*
* Proview $Id: wb_wtt.cpp,v 1.30 2006-03-31 14:29:39 claes Exp $ * Proview $Id: wb_wtt.cpp,v 1.31 2006-04-05 08:43:15 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB. * Copyright (C) 2005 SSAB Oxelsund AB.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -1315,7 +1315,10 @@ void Wtt::set_twowindows( int two, int display_wnav, int display_wnavnode) ...@@ -1315,7 +1315,10 @@ void Wtt::set_twowindows( int two, int display_wnav, int display_wnavnode)
static void wtt_message_cb( void *ctx, char severity, char *msg) static void wtt_message_cb( void *ctx, char severity, char *msg)
{ {
if ( *(wb_eUtility *)ctx == wb_eUtility_Wtt)
((Wtt *)ctx)->message( severity, msg); ((Wtt *)ctx)->message( severity, msg);
else if ( *(wb_eUtility *)ctx == wb_eUtility_WNav)
((WNav *)ctx)->message( severity, msg);
} }
void Wtt::message( char severity, char *message) void Wtt::message( char severity, char *message)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment