// This is a general purpose error reporting mechanism, which reports a // fatal error and then shuts down the program. #include #include "errors.h" char fatal_err_function[64]; // name of the function where the error happened char fatal_err_msg[256]; // description of error char warning_msg[256]; // description of warning void fatal_error() { cout << "Content-type: text/html\n\n"; cout << "\n"; cout << "\n"; cout << "Foggy Bottom Flying Club fatal error\n"; cout << "\n"; cout << "\n"; cout << "

Foggy Bottom Flying Club


\n"; cout << "

Fatal Error

\n\n"; cout << "function = " << fatal_err_function << "()
\n"; cout << "error msg = " << fatal_err_msg << endl; cout << "\n"; cout << "\n"; exit(1); }