NAME

NRE - (MACRO) Returns ERROR if its argument is NULL.

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 NRE(int);

DESCRIPTION

This macro becomes an ERROR return if its argument is NULL. It is a convenient quick return that makes sense in the KJB library, but be careful about cleanup! Often code with NRE()'s will leak memory on failure which is acceptable if the failure is rare, but this should be documented. Further, if the debug level is greater than 0, then a message is added to the list of messages using add_errror(); That line is:
    (NRE on line [line] of [file].

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

AUTHOR

Kobus Barnard

DOCUMENTER

Kobus Barnard

SEE ALSO

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