RE: Source for pfNotify handler

New Message Reply Date view Thread view Subject view Author view

BOCCARA Michael (MICHAEL.BOCCARA++at++siege.aerospatiale.fr)
Mon, 5 May 1997 17:34:20 +0200


   
I did it.

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


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:55:11 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.