Teuchos_exit.h File Reference

Macros and helper functions for replacing raw calls to exit(int) in C and C++ code. More...

#include "Teuchos_ConfigDefs.hpp"

Go to the source code of this file.

Defines

#define TEUCHOS_EXIT(ERROR_CODE)   Teuchos_exit_helper( __FILE__, __LINE__, 0, ERROR_CODE )
 Macro to replace call to exit(...).
#define TEUCHOS_MSG_EXIT(MSG, ERROR_CODE)   Teuchos_exit_helper( __FILE__, __LINE__, MSG, ERROR_CODE )
 Macro to replace call to exit(...) and add a message string.

Functions

void Teuchos_exit_helper (char file[], int line, char msg[], int error_code)
 Function with C linkage that rases a C++ exception.


Detailed Description

Macros and helper functions for replacing raw calls to exit(int) in C and C++ code.

Definition in file Teuchos_exit.h.


Generated on Wed May 12 21:40:33 2010 for Teuchos - Trilinos Tools Package by  doxygen 1.4.7