diff options
Diffstat (limited to 'converter/other/fiasco/lib/error.h')
-rw-r--r-- | converter/other/fiasco/lib/error.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/converter/other/fiasco/lib/error.h b/converter/other/fiasco/lib/error.h new file mode 100644 index 00000000..288b25f4 --- /dev/null +++ b/converter/other/fiasco/lib/error.h @@ -0,0 +1,39 @@ +/* + * error.h + * + * Written by: Stefan Frank + * Ullrich Hafner + * + * This file is part of FIASCO («F»ractal «I»mage «A»nd «S»equence «CO»dec) + * Copyright (C) 1994-2000 Ullrich Hafner <hafner@bigfoot.de> + */ + +#ifndef ERROR_H_INCLUDED +#define ERROR_H_INCLUDED + +void +set_error (const char *format, ...); +void +error (const char *format, ...); +void +file_error (const char *filename); +void +message (const char *format, ...); +void +debug_message (const char *format, ...); +void +warning (const char *format, ...); +void +info (const char *format, ...); +const char * +get_system_error (void); + +#include <setjmp.h> +extern jmp_buf env; + +#define try if (setjmp (env) == 0) +#define catch else + +#include <assert.h> + +#endif |