LAL  7.5.0.1-ec27e42
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:361
#define lalDebugLevel
Definition: LALDebugLevel.h:58
@ LALERROR
enable error messages
Definition: LALDebugLevel.h:46

Definition at line 346 of file LALError.c.

Function Documentation

◆ FREESTATUSPTR()

void FREESTATUSPTR ( LALStatus status)

Definition at line 309 of file LALError.c.

◆ REPORTSTATUS()

void REPORTSTATUS ( LALStatus status)

Definition at line 322 of file LALError.c.

◆ LALInitStatus()

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

Definition at line 149 of file LALError.c.

◆ LALPrepareReturn()

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

Definition at line 182 of file LALError.c.

◆ LALAttatchStatusPtr()

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

Definition at line 200 of file LALError.c.

◆ LALDetatchStatusPtr()

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

Definition at line 225 of file LALError.c.

◆ LALPrepareAbort()

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

Definition at line 244 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 264 of file LALError.c.

◆ LALCheckStatusPtr()

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

Definition at line 285 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 365 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 381 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 397 of file LALError.c.

Variable Documentation

◆ lalRaiseHook

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

Definition at line 57 of file LALError.c.

◆ lalAbortHook

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

Definition at line 75 of file LALError.c.

◆ vrbflg

int vrbflg = 0

Definition at line 361 of file LALError.c.

◆ lal_errhandler

lal_errhandler_t lal_errhandler = LAL_ERR_DFLT

Definition at line 363 of file LALError.c.