/* * ======== AppMain_errorHook ======== */ Void AppMain_errorHook(Error_Block *eb) { String fmt; Error_Data *data; Types_Site *site; if (eb == NULL) { return; } fmt = Error_getMsg(eb); if (fmt != NULL) { data = Error_getData(eb); Log_print2(Diags_USER8, fmt, (IArg)data->arg[0], (IArg)data->arg[1]); site = Error_getSite(eb); Log_print2(Diags_USER8, "Site: %s: line: %d", (IArg)site->file, (IArg)site->line); Error_print(eb); } }
/* * ======== errorHook ======== */ Void errorHook(Error_Block *eb) { System_printf(Error_getMsg(eb), Error_getData(eb)->arg[0], Error_getData(eb)->arg[1]); System_printf("\n"); }