- Tue Apr 12, 2005 12:45 am
#15634
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 );
{
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 );
Next Limit Technologies