lalapps.c File Reference

#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <lalapps.h>
#include <lal/LALMalloc.h>
#include <lal/LALStatusMacros.h>

Include dependency graph for lalapps.c:

Go to the source code of this file.

Defines

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

Functions

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)
int clear_status (LALStatus *stat)
int set_debug_level (const char *s)

Variables

const LALStatus blank_status
int lalDebugLevel = 0
 DECLARE AND SET GLOBAL DEBUG LEVEL.
int vrbflg = 0
 defined in lalapps.c
lal_errhandler_t lal_errhandler = LAL_ERR_DFLT


Define Documentation

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

Value:

do {                                                                             if ( lalDebugLevel & LALERROR )                                                {                                                                                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 )

Definition at line 28 of file lalapps.c.


Function Documentation

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

Definition at line 49 of file lalapps.c.

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

Definition at line 65 of file lalapps.c.

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

Definition at line 81 of file lalapps.c.

int clear_status ( LALStatus stat  ) 

Definition at line 96 of file lalapps.c.

int set_debug_level ( const char *  s  ) 

Definition at line 110 of file lalapps.c.


Variable Documentation

const LALStatus blank_status

Definition at line 43 of file lalapps.c.

int lalDebugLevel = 0

DECLARE AND SET GLOBAL DEBUG LEVEL.

see the section (currently 7.4.1) of the LSD on "Status-reporting objects" for a list of predefined debug levels

Definition at line 44 of file lalapps.c.

int vrbflg = 0

defined in lalapps.c

Parameters:
vrbflg INT4 Control debugging messages. Defined in lalapps.h

Definition at line 45 of file lalapps.c.

lal_errhandler_t lal_errhandler = LAL_ERR_DFLT

Definition at line 47 of file lalapps.c.


Generated on Fri Sep 5 03:08:06 2008 for LAL by  doxygen 1.5.2