Functions | |
void | Abort_Program (const char *message) |
Prints an error message. Calls the defined exit handlers. Exits to the operating system with a final error status. More... | |
void Abort_Program | ( | const char * | message | ) |
Prints an error message. Calls the defined exit handlers. Exits to the operating system with a final error status.
message | - A quoted string, or a string variable containing your error message. An empty string is permissible. |
Provides an orderly way to terminate execution upon the discovery of an error.
A standard HOOPS fatal error sequence is initiated. First, the currently defined error handlers are called. The list presented includes Report_Error() (unless you've specified otherwise), which causes message to be printed out where the user can see it. Then, the currently defined exit handlers are called, usually including Reset_System() . Finally, the operating system is called, with an "error" exit status, to terminate program execution.