diff options
| author | Simon Tatham <anakin@pobox.com> | 2004-04-25 14:27:58 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2004-04-25 14:27:58 +0000 |
| commit | 96dbb537ee14f992459a8359a113a78414addf9d (patch) | |
| tree | 1d1e46e1dcda779dffca03c29bdfdf1fce66f3e4 /gtk.c | |
| download | puzzles-96dbb537ee14f992459a8359a113a78414addf9d.zip puzzles-96dbb537ee14f992459a8359a113a78414addf9d.tar.gz puzzles-96dbb537ee14f992459a8359a113a78414addf9d.tar.bz2 puzzles-96dbb537ee14f992459a8359a113a78414addf9d.tar.xz | |
Initial checkin of a portable framework for writing small GUI puzzle
games.
[originally from svn r4138]
Diffstat (limited to 'gtk.c')
| -rw-r--r-- | gtk.c | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -0,0 +1,23 @@ +/* + * gtk.c: GTK front end for my puzzle collection. + */ + +#include <stdio.h> +#include <stdlib.h> +#include <stdarg.h> + +#include "puzzles.h" + +void fatal(char *fmt, ...) +{ + va_list ap; + + fprintf(stderr, "fatal error: "); + + va_start(ap, fmt); + vfprintf(stderr, fmt, ap); + va_end(ap); + + fprintf(stderr, "\n"); + exit(1); +} |