Page 1 of 1

Posted: Tue Apr 12, 2005 12:45 am
by victor
byte error_callback( byte iserror, const char *pmethod, const char *string, const void *data)
{
char buffer[256];

if (iserror)
sprintf(buffer, "Error %s: %s", pmethod, string);
else
sprintf(buffer, "Warning %s: %s", pmethod, string);

// print buffer somehow

return true;
}

// Maxwell
Cmaxwell *maxwell = new Cmaxwell( error_callback );