FreeBASIC
0.91.0
Main Page
Data Structures
Files
File List
Globals
fb_error.h
Go to the documentation of this file.
1
typedef
enum
_FB_RTERROR
{
2
FB_RTERROR_OK
= 0,
3
FB_RTERROR_ILLEGALFUNCTIONCALL
,
4
FB_RTERROR_FILENOTFOUND
,
5
FB_RTERROR_FILEIO
,
6
FB_RTERROR_OUTOFMEM
,
7
FB_RTERROR_ILLEGALRESUME
,
8
FB_RTERROR_OUTOFBOUNDS
,
9
FB_RTERROR_NULLPTR
,
10
FB_RTERROR_NOPRIVILEDGES
,
11
FB_RTERROR_SIGINT
,
12
FB_RTERROR_SIGILL
,
13
FB_RTERROR_SIGFPE
,
14
FB_RTERROR_SIGSEGV
,
15
FB_RTERROR_SIGTERM
,
16
FB_RTERROR_SIGABRT
,
17
FB_RTERROR_SIGQUIT
,
18
FB_RTERROR_RETURNWITHOUTGOSUB
,
19
FB_RTERROR_ENDOFFILE
,
20
FB_RTERROR_MAX
21
}
FB_RTERROR
;
22
23
typedef
void (*
FB_ERRHANDLER
) (void);
24
25
typedef
struct
_FB_ERRORCTX
{
26
FB_ERRHANDLER
handler
;
27
int
err_num
;
28
int
line_num
;
29
const
char
*
mod_name
;
30
const
char
*
fun_name
;
31
void
*
res_lbl
;
32
void
*
resnxt_lbl
;
33
}
FB_ERRORCTX
;
34
35
#define FB_ERRMSG_SIZE 1024
36
extern
char
__fb_errmsg
[
FB_ERRMSG_SIZE
];
37
38
FBCALL
void
fb_Assert
(
char
*
filename
,
int
linenum,
char
*funcname,
char
*expression );
39
FBCALL
void
fb_AssertWarn
(
char
*
filename
,
int
linenum,
char
*funcname,
char
*expression );
40
FBCALL
void
fb_AssertW
(
char
*
filename
,
int
linenum,
char
*funcname,
FB_WCHAR
*expression );
41
FBCALL
void
fb_AssertWarnW
(
char
*
filename
,
int
linenum,
char
*funcname,
FB_WCHAR
*expression );
42
FB_ERRHANDLER
fb_ErrorThrowEx
(
int
errnum,
int
linenum,
const
char
*fname,
43
void
*res_label,
void
*resnext_label );
44
FB_ERRHANDLER
fb_ErrorThrowAt
(
int
line_num,
const
char
*mod_name,
45
void
*res_label,
void
*resnext_label );
46
FBCALL
FB_ERRHANDLER
fb_ErrorSetHandler
(
FB_ERRHANDLER
newhandler );
47
FBCALL
int
fb_ErrorGetNum
(
void
);
48
FBCALL
int
fb_ErrorSetNum
(
int
errnum );
49
void
*
fb_ErrorResume
(
void
);
50
void
*
fb_ErrorResumeNext
(
void
);
51
FBCALL
int
fb_ErrorGetLineNum
(
void
);
52
FBCALL
const
char
*
fb_ErrorGetModName
(
void
);
53
FBCALL
const
char
*
fb_ErrorSetModName
(
const
char
*mod_name );
54
FBCALL
const
char
*
fb_ErrorGetFuncName
(
void
);
55
FBCALL
const
char
*
fb_ErrorSetFuncName
(
const
char
*fun_name );
rtlib
fb_error.h
Generated on Thu Jan 23 2014 19:40:11 for FreeBASIC by
1.8.4