1 #ifndef _fei_ErrMacros_hpp_ 2 #define _fei_ErrMacros_hpp_ 11 #include "fei_iostream.hpp" 23 #define fei_file "unknown_fei_file" 26 #define CHK_ERR(a) { int fei_ErrorCode = a; \ 27 if (fei_ErrorCode != 0) { \ 28 fei::console_out() << " FEI ERROR, " << fei_file << ", line " \ 29 << __LINE__ << " " << fei_ErrorCode << FEI_ENDL; \ 30 return(fei_ErrorCode); \ 37 #define ERReturn(a) { fei::console_out() << " FEI ERROR, " << fei_file << ", line " \ 38 << __LINE__ << FEI_ENDL; \ 45 #define voidERReturn { fei::console_out() << " FEI ERROR, " << fei_file \ 46 << ", line " << __LINE__ << FEI_ENDL; \