BOCCARA Michael (MICHAEL.BOCCARA++at++siege.aerospatiale.fr)
Mon, 5 May 1997 17:34:20 +0200
Here is an example where I want to make another standard output for a certain
type of warning, for debug use :
///////////////////////////////////////////////////
static void notify_handler(pfNotifyData* nfy_data);
int
main(int argc, char* argv[])
<
pfNotifyHandler(notify_handler);
pfInit();
etc...
>
void
notify_handler(pfNotifyData *nfy_data)
<
// default Performer stuff
//
pfDefaultNotifyHandler(nfy_data);
// prints HaHa for a few error strings
//
if(strstr(nfy_data->emsg, "FP zero over zero") ||
strstr(nfy_data->emsg, "FP division by zero") ||
strstr(nfy_data->emsg, "FP overflow")) <
pfNotify(PFNFY_ALWAYS, PFNFY_PRINT, "Ha Ha !!!");
>
>
Is it ok ?
Michael (also)
===================================List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:55:11 PDT