ggiPanic3
Exit libggi programs for fatal errors
Usage
#include <ggi/ggi.h> void ggiPanic(const char *format, ...);
Overview
ggiPanic shuts down the application, closing all visuals, with printf(3)-style reporting to stderr, taking a format string and any additional variables.
ggiPanic should only be used by usermode programs when something is really screwed, and they do not know what to do. The same applies for libraries, but might be used in rare situations such as corruption of critical data structures.
Return value
Never returns.
Examples
An unrecoverable error:
if (my_important_struct->magic != MAGIC) {
ggiPanic("Fatal error: structure is corrupted\n");
}
Releases
4 releases since Debian 3.1 (Sarge); the text changed 2 times.