// error_handler.vc for Sully www.verge-rpg.com // Zip 28/08/2004 // // // --------------------- // Error functions // --------------------- // // Notifies by MessageBox() and/or Log() of problems when loading data from file // No comments, as the text to display should be pretty explanatory // // Used to set how errors are reported, 3 is recommend, 0 should not be used // 3 is MessageBox() and Log(), 2 is MessageBox(), 1 is Log(), 0 is neither #define ERROR_HANDLING 2 // Used to set shortest valid length of description text, should be 1 at least #define MICRO_STRING 5 // Used to prevent while loops getting stuck if the EOF marker is forgotten in file loading #define COUNT_OUT 1000 // This is the only error function I ever use. // Zip didn't really document the others, but as far as I can tell they're all semantic wrappers. // -Grue void ErrorHandler(string error_content) void ErrorCountOut(string erco_filename) void ErrorDuplicateName(string erdn_location, string erdn_names) void ErrorDuplicateType(string erdt_location, string erdt_typestring) void ErrorLoadDefine(string erld_location, string erld_valstring) void ErrorLoadFile(string erlf_filename) void ErrorLoadNumber(int erln_numconv, string erln_numstring) void ErrorLoadOver(int erlo_maxentries, string erlo_filename) void ErrorLoadstring(string erls_failstring) void ErrorLoadType(string erlt_location, string erlt_typestring) void ErrorMatchstrings(string erms_findstring, string erms_checkstring) void ErrorStupidNumber(int ersn_numconv, string ersn_numstring)