FreeBASIC  0.91.0
fb_error.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _FB_ERRORCTX
 

Macros

#define FB_ERRMSG_SIZE   1024
 

Typedefs

typedef enum _FB_RTERROR FB_RTERROR
 
typedef void(* FB_ERRHANDLER )(void)
 
typedef struct _FB_ERRORCTX FB_ERRORCTX
 

Enumerations

enum  _FB_RTERROR {
  FB_RTERROR_OK = 0, FB_RTERROR_ILLEGALFUNCTIONCALL, FB_RTERROR_FILENOTFOUND, FB_RTERROR_FILEIO,
  FB_RTERROR_OUTOFMEM, FB_RTERROR_ILLEGALRESUME, FB_RTERROR_OUTOFBOUNDS, FB_RTERROR_NULLPTR,
  FB_RTERROR_NOPRIVILEDGES, FB_RTERROR_SIGINT, FB_RTERROR_SIGILL, FB_RTERROR_SIGFPE,
  FB_RTERROR_SIGSEGV, FB_RTERROR_SIGTERM, FB_RTERROR_SIGABRT, FB_RTERROR_SIGQUIT,
  FB_RTERROR_RETURNWITHOUTGOSUB, FB_RTERROR_ENDOFFILE, FB_RTERROR_MAX
}
 

Functions

FBCALL void fb_Assert (char *filename, int linenum, char *funcname, char *expression)
 
FBCALL void fb_AssertWarn (char *filename, int linenum, char *funcname, char *expression)
 
FBCALL void fb_AssertW (char *filename, int linenum, char *funcname, FB_WCHAR *expression)
 
FBCALL void fb_AssertWarnW (char *filename, int linenum, char *funcname, FB_WCHAR *expression)
 
FB_ERRHANDLER fb_ErrorThrowEx (int errnum, int linenum, const char *fname, void *res_label, void *resnext_label)
 
FB_ERRHANDLER fb_ErrorThrowAt (int line_num, const char *mod_name, void *res_label, void *resnext_label)
 
FBCALL FB_ERRHANDLER fb_ErrorSetHandler (FB_ERRHANDLER newhandler)
 
FBCALL int fb_ErrorGetNum (void)
 
FBCALL int fb_ErrorSetNum (int errnum)
 
void * fb_ErrorResume (void)
 
void * fb_ErrorResumeNext (void)
 
FBCALL int fb_ErrorGetLineNum (void)
 
FBCALL const char * fb_ErrorGetModName (void)
 
FBCALL const char * fb_ErrorSetModName (const char *mod_name)
 
FBCALL const char * fb_ErrorGetFuncName (void)
 
FBCALL const char * fb_ErrorSetFuncName (const char *fun_name)
 

Variables

char __fb_errmsg [FB_ERRMSG_SIZE]
 

Macro Definition Documentation

#define FB_ERRMSG_SIZE   1024

Definition at line 35 of file fb_error.h.

Typedef Documentation

typedef void(* FB_ERRHANDLER)(void)

Definition at line 23 of file fb_error.h.

typedef struct _FB_ERRORCTX FB_ERRORCTX
typedef enum _FB_RTERROR FB_RTERROR

Enumeration Type Documentation

Enumerator
FB_RTERROR_OK 
FB_RTERROR_ILLEGALFUNCTIONCALL 
FB_RTERROR_FILENOTFOUND 
FB_RTERROR_FILEIO 
FB_RTERROR_OUTOFMEM 
FB_RTERROR_ILLEGALRESUME 
FB_RTERROR_OUTOFBOUNDS 
FB_RTERROR_NULLPTR 
FB_RTERROR_NOPRIVILEDGES 
FB_RTERROR_SIGINT 
FB_RTERROR_SIGILL 
FB_RTERROR_SIGFPE 
FB_RTERROR_SIGSEGV 
FB_RTERROR_SIGTERM 
FB_RTERROR_SIGABRT 
FB_RTERROR_SIGQUIT 
FB_RTERROR_RETURNWITHOUTGOSUB 
FB_RTERROR_ENDOFFILE 
FB_RTERROR_MAX 

Definition at line 1 of file fb_error.h.

Function Documentation

FBCALL void fb_Assert ( char *  filename,
int  linenum,
char *  funcname,
char *  expression 
)

Definition at line 5 of file error_assert.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL void fb_AssertW ( char *  filename,
int  linenum,
char *  funcname,
FB_WCHAR expression 
)

Definition at line 13 of file error_assert_wstr.c.

Here is the call graph for this function:

FBCALL void fb_AssertWarn ( char *  filename,
int  linenum,
char *  funcname,
char *  expression 
)

Definition at line 19 of file error_assert.c.

Here is the caller graph for this function:

FBCALL void fb_AssertWarnW ( char *  filename,
int  linenum,
char *  funcname,
FB_WCHAR expression 
)

Definition at line 28 of file error_assert_wstr.c.

Here is the call graph for this function:

FBCALL const char* fb_ErrorGetFuncName ( void  )

Definition at line 38 of file error_getset.c.

FBCALL int fb_ErrorGetLineNum ( void  )

Definition at line 18 of file error_getset.c.

FBCALL const char* fb_ErrorGetModName ( void  )

Definition at line 24 of file error_getset.c.

FBCALL int fb_ErrorGetNum ( void  )

Definition at line 5 of file error_getset.c.

void* fb_ErrorResume ( void  )

Definition at line 125 of file error.c.

Here is the call graph for this function:

void* fb_ErrorResumeNext ( void  )

Definition at line 141 of file error.c.

Here is the call graph for this function:

FBCALL const char* fb_ErrorSetFuncName ( const char *  fun_name)

Definition at line 44 of file error_getset.c.

FBCALL FB_ERRHANDLER fb_ErrorSetHandler ( FB_ERRHANDLER  newhandler)

Definition at line 113 of file error.c.

FBCALL const char* fb_ErrorSetModName ( const char *  mod_name)

Definition at line 30 of file error_getset.c.

FBCALL int fb_ErrorSetNum ( int  errnum)

Definition at line 11 of file error_getset.c.

FB_ERRHANDLER fb_ErrorThrowAt ( int  line_num,
const char *  mod_name,
void *  res_label,
void *  resnext_label 
)

Definition at line 100 of file error.c.

Here is the call graph for this function:

FB_ERRHANDLER fb_ErrorThrowEx ( int  errnum,
int  linenum,
const char *  fname,
void *  res_label,
void *  resnext_label 
)

Definition at line 68 of file error.c.

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

char __fb_errmsg[FB_ERRMSG_SIZE]

Definition at line 5 of file error_message.c.