about summary refs log tree commit diff
path: root/converter/other/fiasco/lib/error.h
blob: dd6a049fdafe16eb81f8fc86ff5857617fae020d (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 (Fractal Image And Sequence COdec)
 *  Copyright (C) 1994-2000 Ullrich Hafner
 */

#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