OpenMPI  0.1.1
OTF_Errno.h
Go to the documentation of this file.
1 /*
2  This is part of the OTF library. Copyright by ZIH, TU Dresden 2005-2012.
3  Authors: Andreas Knuepfer, Holger Brunst, Ronny Brendel, Thomas Kriebitzsch
4 */
5 
6 /**
7  * @file OTF_Errno.h
8  *
9  * @brief Provides two variables that contain information about the
10  * last error that occurred.
11  *
12  * You can check the error variables after every otf functions call
13  * to find out if there was an error or not.
14  *
15  * <B>Variables:</B> <BR>
16  *
17  * \code
18  * int otf_errno - indicates whether an error occurred or not,
19  * values can be OTF_NO_ERROR or OTF_ERROR
20  *
21  * char* otf_strerr - contains the last error message with a
22  * maximum length of OTF_ERR_LEN
23  * \endcode
24  *
25  *
26  * Both variables can be used after including otf.h
27  * \ingroup misc
28  */
29 
30 
31 #ifndef OTF_ERRNO_H
32 #define OTF_ERRNO_H
33 
34 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif /* __cplusplus */
38 
39 /** @cond Errno.h */
40 
41 /** the following lines is ignored by doxygen */
42 
43 void OTF_Error( const char* format, ... );
44 void OTF_Warning( const char* format, ... );
45 
46 /** @endcond */
47 
48 #ifdef __cplusplus
49 }
50 #endif /* __cplusplus */
51 
52 #endif /* OTF_ERRNO_H */
53