NAME

BATCH_EPETE - (MACRO) Prints error and maybe terminates execution if argument is ERROR.

SYNOPSIS

#include "l/l_error.h"

Example compile flags (system dependent):
  -DLINUX_X86_64 -DLINUX_X86_64_OPTERON  -DGNU_COMPILER 
   -I/home/kobus/include
   -L/home/kobus/misc/load/linux_x86_64_opteron -L/usr/lib/x86_64-linux-gnu
  -lKJB                               -lfftw3  -lgsl -lgslcblas -ljpeg  -lSVM -lstdc++                    -lpthread -lSLATEC -lg2c    -lacml -lacml_mv -lblas -lg2c      -lncursesw 


int BATCH_EPETE(int);

DESCRIPTION

When running interactively, this macro behaves identically to EPETE. Otherwise, this macro behaves like EPE. We might wrap a function call with BATCH_EPETE so that the program will terminate right away if someone is likely to be watching the console for error messages; the program says, "Since you're right here, could you help me resolve this?" But if no one is interacting, then the program does not give up; rather it prints the error and tries to carry on. This might be appropriate, for example, when processing a string of commands such that even if one command fails, still we want the remaining commands to be processed as given.

RELATED

EPETE, EPE, is_interactive

DISCLAIMER

This software is not adequatedly tested. It is recomended that results are checked independantly where appropriate.

AUTHOR

Kobus Barnard

DOCUMENTER

Andrew Predoehl

SEE ALSO

NOTE_ERROR , EGC , ERE , ERN , ER , EPE , ETE , EPETE , EPETE , ESBRE , NRE , NGC , NRN , NR , NPE , NTE , NPETE , NPETE