ggiPanic(3)

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.

  1. 3.1
  2. 4.0
  3. 5.0–6.0

From libggi2-dev 1:2.2.2-5 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.