#include #include "errors.h" #include #include using namespace std; int verbose_level=DEFAULT_VERBOSE; /************************************************************* * Function: error_handler * ************************************************************* * Description: * * Shows error message on the screen and abort execution * * of the program. * * * * Input: * * int err_code - Which error? * * char *add_string - Some errors may display additional * * information. * * * * Change History: * * Date Author Modification * * * *************************************************************/ void error_handler (int err_code, char *add_string) { if (err_code==OKAY) { return; // Does nothing } else { switch (err_code) { case ERR_NODISPLAY: cout<<"Couldn't open display."; break; case ERR_XPMERROR: cout<<"Couldn't load XPM image"; break; case ERR_BADFONT: cout<<"Couldn't load desired font: "<