LAL  7.1.7.1-9b0afb2
LALError.c File Reference

Prototypes

void FREESTATUSPTR (LALStatus *status)
 
void REPORTSTATUS (LALStatus *status)
 
int LALPrintError (const char *fmt,...)
 
int LALRaise (int sig, const char *fmt,...)
 
void LALAbort (const char *fmt,...)
 
int LALError (LALStatus *status, const char *statement)
 
int LALWarning (LALStatus *status, const char *warning)
 
int LALInfo (LALStatus *status, const char *info)
 
int LALTrace (LALStatus *status, int exitflg)
 
int LALInitStatus (LALStatus *status, const char *function, const char *id, const char *file, const int line)
 
int LALPrepareReturn (LALStatus *status, const char *file, const int line)
 
int LALAttatchStatusPtr (LALStatus *status, const char *file, const int line)
 
int LALDetatchStatusPtr (LALStatus *status, const char *file, const int line)
 
int LALPrepareAbort (LALStatus *status, const INT4 code, const char *mesg, const char *file, const int line)
 
int LALPrepareAssertFail (LALStatus *status, const INT4 code, const char *mesg, const char *statement, const char *file, const int line)
 
int LALCheckStatusPtr (LALStatus *status, const char *statement, const char *file, const int line)
 
int LAL_ERR_EXIT (LALStatus *stat, const char *func, const char *file, const int line, volatile const char *id)
 
int LAL_ERR_ABRT (LALStatus *stat, const char *func, const char *file, const int line, volatile const char *id)
 
int LAL_ERR_RTRN (LALStatus *stat, const char *func, const char *file, const int line, volatile const char *id)
 

Go to the source code of this file.

Macros

#define FAILMSG(stat, func, file, line, id)
 

Variables

int(* lalRaiseHook )(int, const char *,...) = LALRaise
 
void(* lalAbortHook )(const char *,...) = LALAbort
 
int vrbflg = 0
 
lal_errhandler_t lal_errhandler = LAL_ERR_DFLT
 

Macro Definition Documentation

◆ FAILMSG

#define FAILMSG (   stat,
  func,
  file,
  line,
  id 
)
Value:
do { \
{ \
LALPrintError( "Error[0]: file %s, line %d, %s\n" \
"\tLAL_CALL: Function call `%s' failed.\n", file, line, id, func ); \
} \
if ( vrbflg ) \
{ \
fprintf(stderr,"Level 0: %s\n\tFunction call `%s' failed.\n" \
"\tfile %s, line %d\n", id, func, file, line ); \
REPORTSTATUS( stat ); \
} \
} while( 0 )
int vrbflg
Definition: LALError.c:371
#define lalDebugLevel
Definition: LALDebugLevel.h:56
enable error messages
Definition: LALDebugLevel.h:44

Definition at line 356 of file LALError.c.

Function Documentation

◆ FREESTATUSPTR()

void FREESTATUSPTR ( LALStatus status)

Definition at line 319 of file LALError.c.

◆ REPORTSTATUS()

void REPORTSTATUS ( LALStatus status)

Definition at line 332 of file LALError.c.

◆ LALInitStatus()

int LALInitStatus ( LALStatus status,
const char *  function,
const char *  id,
const char *  file,
const int  line 
)

Definition at line 159 of file LALError.c.

◆ LALPrepareReturn()

int LALPrepareReturn ( LALStatus status,
const char *  file,
const int  line 
)

Definition at line 192 of file LALError.c.

◆ LALAttatchStatusPtr()

int LALAttatchStatusPtr ( LALStatus status,
const char *  file,
const int  line 
)

Definition at line 210 of file LALError.c.

◆ LALDetatchStatusPtr()

int LALDetatchStatusPtr ( LALStatus status,
const char *  file,
const int  line 
)

Definition at line 235 of file LALError.c.

◆ LALPrepareAbort()

int LALPrepareAbort ( LALStatus status,
const INT4  code,
const char *  mesg,
const char *  file,
const int  line 
)

Definition at line 254 of file LALError.c.

◆ LALPrepareAssertFail()

int LALPrepareAssertFail ( LALStatus status,
const INT4  code,
const char *  mesg,
const char *  statement,
const char *  file,
const int  line 
)

Definition at line 274 of file LALError.c.

◆ LALCheckStatusPtr()

int LALCheckStatusPtr ( LALStatus status,
const char *  statement,
const char *  file,
const int  line 
)

Definition at line 295 of file LALError.c.

◆ LAL_ERR_EXIT()

int LAL_ERR_EXIT ( LALStatus stat,
const char *  func,
const char *  file,
const int  line,
volatile const char *  id 
)

Definition at line 375 of file LALError.c.

◆ LAL_ERR_ABRT()

int LAL_ERR_ABRT ( LALStatus stat,
const char *  func,
const char *  file,
const int  line,
volatile const char *  id 
)

Definition at line 391 of file LALError.c.

◆ LAL_ERR_RTRN()

int LAL_ERR_RTRN ( LALStatus stat,
const char *  func,
const char *  file,
const int  line,
volatile const char *  id 
)

Definition at line 407 of file LALError.c.

Variable Documentation

◆ lalRaiseHook

int(* lalRaiseHook) (int, const char *,...) = LALRaise

Definition at line 57 of file LALError.c.

◆ lalAbortHook

void(* lalAbortHook) (const char *,...) = LALAbort

Definition at line 75 of file LALError.c.

◆ vrbflg

int vrbflg = 0

Definition at line 371 of file LALError.c.

◆ lal_errhandler

lal_errhandler_t lal_errhandler = LAL_ERR_DFLT

Definition at line 373 of file LALError.c.