// Reports an interpretation error void XML_ResourceFork::ReportInterpretError(const char *ErrorString) { #ifdef TARGET_API_MAC_CARBON if (GetNumInterpretErrors() < MaxErrorsToShow) { SimpleAlert(kAlertNoteAlert,ErrorString); } #else CopyCStringToPascal(ErrorString, ptemporary); ParamText(ptemporary,0,0,0); if (GetNumInterpretErrors() < MaxErrorsToShow) { Alert(NonFatalErrorAlert,NULL); } #endif }
void XML_Loader_SDL::ReportInterpretError(const char *ErrorString) { if (GetNumInterpretErrors() < MaxErrorsToShow) { fprintf(stderr, "%s\n", ErrorString); } }
bool XML_Loader_SDL::RequestAbort() { return (GetNumInterpretErrors() >= MaxErrorsToShow); }
bool PluginLoader::RequestAbort() { return (GetNumInterpretErrors() >= MaxErrorsToShow); }
void PluginLoader::ReportInterpretError(const char* ErrorString) { if (GetNumInterpretErrors() < MaxErrorsToShow) { logError(ErrorString); } }
// Requests aborting of parsing (reasonable if there were lots of errors) bool XML_ResourceFork::RequestAbort() { return (GetNumInterpretErrors() >= MaxErrorsToShow); }