about summary refs log tree commit diff
path: root/converter/other/fiasco/lib/error.h
blob: 288b25f4a48550a422cf6329ec6170c2dd7d6027 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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